Re: [Rd] system(timeout=) may timeout with 0 exit code

2020-05-20 Thread Tomas Kalibera
On 5/14/20 8:34 PM, Jan Gorecki wrote: Hi R developers, I observed that system(timeout=) may still return exit code 0, when killing the process due to timeout. In src/unix/sys-unix.c there is #define KILL_SIGNAL1 SIGINT #define KILL_SIGNAL2 SIGTERM #define KILL_SIGNAL3 SIGKILL #define EMERGENC

[Rd] system(timeout=) may timeout with 0 exit code

2020-05-14 Thread Jan Gorecki
Hi R developers, I observed that system(timeout=) may still return exit code 0, when killing the process due to timeout. In src/unix/sys-unix.c there is #define KILL_SIGNAL1 SIGINT #define KILL_SIGNAL2 SIGTERM #define KILL_SIGNAL3 SIGKILL #define EMERGENCY_TIMEOUT 20 After little bit of debuggi