diff options
author | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-03 04:36:28 +0000 |
---|---|---|
committer | usa <usa@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2008-06-03 04:36:28 +0000 |
commit | ff1e9ad9ddc1312a2026a802637f086dd94033e7 (patch) | |
tree | 176a68bf5b49f5b0771fb4fa758f4a07a335b583 /process.c | |
parent | a6f184212ac43baa3f07f828c9663b91b8753ba1 (diff) | |
download | ruby-ff1e9ad9ddc1312a2026a802637f086dd94033e7.tar.gz ruby-ff1e9ad9ddc1312a2026a802637f086dd94033e7.tar.xz ruby-ff1e9ad9ddc1312a2026a802637f086dd94033e7.zip |
* process.c (run_exec_pgroup): C99 ism.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16770 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r-- | process.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -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(); } |