process.c (after_fork_ruby): make it a proper function
Improves readability to me, and there's no point in using macros for this with decent compilers. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63739 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
be850d7b11
commit
5767162197
@ -1230,7 +1230,12 @@ after_exec(void)
|
||||
}
|
||||
|
||||
#define before_fork_ruby() before_exec()
|
||||
#define after_fork_ruby() (rb_threadptr_pending_interrupt_clear(GET_THREAD()), after_exec())
|
||||
static void
|
||||
after_fork_ruby(void)
|
||||
{
|
||||
rb_threadptr_pending_interrupt_clear(GET_THREAD());
|
||||
after_exec();
|
||||
}
|
||||
|
||||
#include "dln.h"
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user