зеркало из https://github.com/github/ruby.git
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
This commit is contained in:
Родитель
dff596be18
Коммит
d6df54cc9f
|
@ -1477,6 +1477,7 @@ after_exec(void)
|
||||||
after_exec_non_async_signal_safe();
|
after_exec_non_async_signal_safe();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if defined HAVE_WORKING_FORK || defined HAVE_DAEMON
|
||||||
#define before_fork_ruby() before_exec()
|
#define before_fork_ruby() before_exec()
|
||||||
static void
|
static void
|
||||||
after_fork_ruby(void)
|
after_fork_ruby(void)
|
||||||
|
@ -1484,6 +1485,7 @@ after_fork_ruby(void)
|
||||||
rb_threadptr_pending_interrupt_clear(GET_THREAD());
|
rb_threadptr_pending_interrupt_clear(GET_THREAD());
|
||||||
after_exec();
|
after_exec();
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
#include "dln.h"
|
#include "dln.h"
|
||||||
|
|
||||||
|
|
Загрузка…
Ссылка в новой задаче