summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-24 10:30:48 +0000
committernormal <normal@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-24 10:30:48 +0000
commit5767162197b7f2db067a3a2b2c385ddfcef30432 (patch)
treef16ed5e778ede9b0f1a7c6ab51bd3762e240fd41 /process.c
parentbe850d7b11017ba921f3f284dc9863c818e9ff86 (diff)
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.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/process.c b/process.c
index a60c0df16b..b37a37c084 100644
--- a/process.c
+++ b/process.c
@@ -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"