summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 14:50:47 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-05-19 14:50:47 +0000
commitc54733e1206c2d7434610c8f7f2875f082231cfd (patch)
tree35c9630ade390f3a9562e2447dc01f024cd37b2c /process.c
parent66795c47745698b30d42b35831f359aa3c07bf2c (diff)
fix typos inspired by r40825
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40829 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/process.c b/process.c
index 66e910af71..e9e0fc88fd 100644
--- a/process.c
+++ b/process.c
@@ -3312,7 +3312,7 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg,
int err, state = 0;
int ep[2];
VALUE exc = Qnil;
- int error_occured;
+ int error_occurred;
if (status) *status = 0;
@@ -3358,8 +3358,8 @@ rb_fork_internal(int *status, int (*chfunc)(void*, char *, size_t), void *charg,
#endif
}
close(ep[1]);
- error_occured = recv_child_error(ep[0], &state, &exc, &err, errmsg, errmsg_buflen, chfunc_is_async_signal_safe);
- if (state || error_occured) {
+ error_occurred = recv_child_error(ep[0], &state, &exc, &err, errmsg, errmsg_buflen, chfunc_is_async_signal_safe);
+ if (state || error_occurred) {
if (status) {
rb_protect(proc_syswait, (VALUE)pid, status);
if (state) *status = state;