summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 05:11:17 +0000
committernaruse <naruse@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2010-01-27 05:11:17 +0000
commitf0caeb92e838a18cfa80e1755a1129a2d186a434 (patch)
tree803b9c98766377d5a6751179429e563fd3d8c10d /process.c
parent5cce9205829d4a7e3d0823c103a4f4dda09c0ec8 (diff)
* io.c, eval.c, process.c: add __APPLE__ to r26371's condition.
patched by Wataru Kimura [ruby-dev:40145] git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@26437 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 5dea97f4a6..9a350ff486 100644
--- a/process.c
+++ b/process.c
@@ -1331,11 +1331,11 @@ rb_f_fork(obj)
fflush(stderr);
#endif
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__APPLE__)
before_exec();
#endif
pid = fork();
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__APPLE__)
after_exec();
#endif
switch (pid) {
@@ -1578,7 +1578,7 @@ rb_f_system(argc, argv)
chfunc = signal(SIGCHLD, SIG_DFL);
retry:
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__APPLE__)
before_exec();
#endif
pid = fork();
@@ -1588,7 +1588,7 @@ rb_f_system(argc, argv)
rb_protect(proc_exec_args, (VALUE)&earg, NULL);
_exit(127);
}
-#ifdef __NetBSD__
+#if defined(__NetBSD__) || defined(__APPLE__)
after_exec();
#endif
if (pid < 0) {