Skip to content
Prev 61354 / 63424 Next

Robustifying R_CleanTempDir a bit more

On 2/16/23 15:09, Ivan Krylov wrote:
Please see 83851 from earlier today which does a bit more of 
robustification, and if you find any problem in it, please let me know.
Yes, this is a good point and we have been thinking about spawn() as 
well, and we are considering that. Re implementing, I also fear the cost 
may be too high, thinking about the timeout support in system() I 
implemented earlier, so essentially a system() replacement for Unix. The 
details are complicated on Unix as well as on Windows. And re reusing 
existing implementations, we will have to check they do exactly what we 
need about signals, terminal, process groups, termination, input and 
output, etc. It may also be that improving performance of R_unlink() 
would be easier, as it is rather un-optimized now. So I just wanted to 
buy time with (possibly temporary) fix in 83851.

Thanks
Tomas