diff options
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -1331,11 +1331,11 @@ rb_f_fork(obj) fflush(stderr); #endif -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) before_exec(); #endif pid = fork(); -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) after_exec(); #endif switch (pid) { @@ -1578,7 +1578,7 @@ rb_f_system(argc, argv) chfunc = signal(SIGCHLD, SIG_DFL); retry: -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) before_exec(); #endif pid = fork(); @@ -1588,7 +1588,7 @@ rb_f_system(argc, argv) rb_protect(proc_exec_args, (VALUE)&earg, NULL); _exit(127); } -#if defined(__NetBSD__) || defined(__APPLE__) +#if defined(__NetBSD__) || defined(__APPLE__) || defined(linux) after_exec(); #endif if (pid < 0) { |