summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-26 12:04:32 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-26 12:04:32 +0000
commitd6df54cc9ff75ec75220687bb6c0cb12e602280d (patch)
treead9433d73d37fb4b6dc603e9acf7f59201135e06 /process.c
parentdff596be1832b4e09d2b1ff8e7138cd7d0cd1bc8 (diff)
process.c: conditionally used functions
* process.c (before_fork_ruby, after_fork_ruby): used only if fork() or daemon() is available. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64065 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/process.c b/process.c
index 956db995ca..dd70c7104c 100644
--- a/process.c
+++ b/process.c
@@ -1477,6 +1477,7 @@ after_exec(void)
after_exec_non_async_signal_safe();
}
+#if defined HAVE_WORKING_FORK || defined HAVE_DAEMON
#define before_fork_ruby() before_exec()
static void
after_fork_ruby(void)
@@ -1484,6 +1485,7 @@ after_fork_ruby(void)
rb_threadptr_pending_interrupt_clear(GET_THREAD());
after_exec();
}
+#endif
#include "dln.h"