aboutsummaryrefslogtreecommitdiffstats
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
commit61992baddfdc4afff331c98fa177a75515b05b88 (patch)
treef16ed5e778ede9b0f1a7c6ab51bd3762e240fd41 /process.c
parent9f065e1f3c1a326c9466ae99d8e3e11f776c0319 (diff)
downloadruby-61992baddfdc4afff331c98fa177a75515b05b88.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.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"