ruby-changes:51851
From: nobu <ko1@a...>
Date: Thu, 26 Jul 2018 21:04:38 +0900 (JST)
Subject: [ruby-changes:51851] nobu:r64065 (trunk): process.c: conditionally used functions
nobu 2018-07-26 21:04:32 +0900 (Thu, 26 Jul 2018) New Revision: 64065 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64065 Log: process.c: conditionally used functions * process.c (before_fork_ruby, after_fork_ruby): used only if fork() or daemon() is available. Modified files: trunk/process.c Index: process.c =================================================================== --- process.c (revision 64064) +++ process.c (revision 64065) @@ -1477,6 +1477,7 @@ after_exec(void) https://github.com/ruby/ruby/blob/trunk/process.c#L1477 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) https://github.com/ruby/ruby/blob/trunk/process.c#L1485 rb_threadptr_pending_interrupt_clear(GET_THREAD()); after_exec(); } +#endif #include "dln.h" -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/