aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-13 11:20:33 +0000
committerakr <akr@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2012-06-13 11:20:33 +0000
commite9a1ba232ac7b8f0ec9a7044039986f03505ed70 (patch)
tree2a65006c7bd342fa482985218fb4ba3c9834dbe9
parent2c1322ec88df93ac9ff280e6164d8cead12f30b8 (diff)
downloadruby-e9a1ba232ac7b8f0ec9a7044039986f03505ed70.tar.gz
* process.c (rb_fork_internal): move a variable declaration.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@36061 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--ChangeLog4
-rw-r--r--process.c2
2 files changed, 5 insertions, 1 deletions
diff --git a/ChangeLog b/ChangeLog
index 4bc8e9dc35..81aff9dddb 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+Wed Jun 13 20:19:59 2012 Tanaka Akira <akr@fsij.org>
+
+ * process.c (rb_fork_internal): move a variable declaration.
+
Wed Jun 13 17:54:38 2012 URABE Shyouhei <shyouhei@ruby-lang.org>
* regparse.c (PFETCH_READY): this line was to suppress warning,
diff --git a/process.c b/process.c
index dce3258d97..f5860422af 100644
--- a/process.c
+++ b/process.c
@@ -3102,13 +3102,13 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg,
if (pid < 0)
return pid;
if (!pid) {
- struct chfunc_protect_t arg;
int ret;
forked_child = 1;
close(ep[0]);
if (chfunc_is_async_signal_safe)
ret = chfunc(charg, errmsg, errmsg_buflen);
else {
+ struct chfunc_protect_t arg;
arg.chfunc = chfunc;
arg.arg = charg;
arg.errmsg = errmsg;