summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-18 04:52:27 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-03-18 04:52:27 +0000
commitc50494d6bb7757c8670b554118f8f40df9f6682f (patch)
tree272ea2550ec7fb1467be57976c13ae95142eb9b7 /process.c
parentae1951a030cd25bb6f3fecaf156c8bd047a91648 (diff)
* io.c, eval.c, process.c: add linux to r26371's condition.
patched by Motohiro KOSAKI [ruby-core:28151] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/process.c b/process.c
index 9a350ff486..1ff737d54a 100644
--- a/process.c
+++ b/process.c
@@ -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) {