From a5c99283201bb66f61c216955dbfbffe683598e5 Mon Sep 17 00:00:00 2001 From: usa Date: Tue, 3 Jun 2008 04:36:28 +0000 Subject: * process.c (run_exec_pgroup): C99 ism. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- process.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'process.c') diff --git a/process.c b/process.c index 682ba259bc..ae877c1147 100644 --- a/process.c +++ b/process.c @@ -2015,11 +2015,12 @@ run_exec_pgroup(VALUE obj, VALUE save) * No race condition, even without setpgid from the parent. * (Is there an environment which has setpgid but FD_CLOEXEC?) */ + pid_t pgroup; if (!NIL_P(save)) { /* maybe meaningless with no fork environment... */ rb_ary_store(save, EXEC_OPTION_PGROUP, PIDT2NUM(getpgrp())); } - pid_t pgroup = NUM2PIDT(obj); + pgroup = NUM2PIDT(obj); if (pgroup == 0) { pgroup = getpid(); } -- cgit v1.2.3