diff options
author | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-24 10:30:48 +0000 |
---|---|---|
committer | normal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-06-24 10:30:48 +0000 |
commit | 5767162197b7f2db067a3a2b2c385ddfcef30432 (patch) | |
tree | f16ed5e778ede9b0f1a7c6ab51bd3762e240fd41 /process.c | |
parent | be850d7b11017ba921f3f284dc9863c818e9ff86 (diff) | |
download | ruby-5767162197b7f2db067a3a2b2c385ddfcef30432.tar.gz |
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
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -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" |