summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-30 14:54:53 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2005-06-30 14:54:53 +0000
commit1a6b5e7a1893736b1d3151441b570f903a9f1536 (patch)
tree59700d8af2b49b9b9bfc42c1d66992930ad681a1 /process.c
parent70ca76ab04140c794a0f5e85f3199b8724ebe3ae (diff)
* process.c (detach_process_wathcer): fixed typo.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/branches/ruby_1_8@8683 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'process.c')
-rw-r--r--process.c18
1 files changed, 9 insertions, 9 deletions
diff --git a/process.c b/process.c
index 9b1c29da21..6396deea7e 100644
--- a/process.c
+++ b/process.c
@@ -813,7 +813,7 @@ proc_waitall()
if (pid == -1) {
if (errno == ECHILD)
break;
- if (errno == EINTR) {
+ if (errno == EINTR) {
rb_thread_schedule();
continue;
}
@@ -838,7 +838,7 @@ proc_waitall()
}
static VALUE
-detach_process_watcer(pid_p)
+detach_process_watcher(pid_p)
int *pid_p;
{
int cpid, status;
@@ -854,7 +854,7 @@ VALUE
rb_detach_process(pid)
int pid;
{
- return rb_thread_create(detach_process_watcer, (void*)&pid);
+ return rb_thread_create(detach_process_watcher, (void*)&pid);
}
@@ -2426,11 +2426,11 @@ proc_getgroups(VALUE obj)
ngroups = getgroups(maxgroups, groups);
if (ngroups == -1)
- rb_sys_fail(0);
+ rb_sys_fail(0);
ary = rb_ary_new();
for (i = 0; i < ngroups; i++)
- rb_ary_push(ary, INT2NUM(groups[i]));
+ rb_ary_push(ary, INT2NUM(groups[i]));
return ary;
#else
@@ -2466,15 +2466,15 @@ proc_setgroups(VALUE obj, VALUE ary)
ngroups = RARRAY(ary)->len;
if (ngroups > maxgroups)
- rb_raise(rb_eArgError, "too many groups, %d max", maxgroups);
+ rb_raise(rb_eArgError, "too many groups, %d max", maxgroups);
groups = ALLOCA_N(rb_gid_t, ngroups);
for (i = 0; i < ngroups && i < RARRAY(ary)->len; i++) {
- VALUE g = RARRAY(ary)->ptr[i];
+ VALUE g = RARRAY(ary)->ptr[i];
if (FIXNUM_P(g)) {
- groups[i] = FIX2INT(g);
+ groups[i] = FIX2INT(g);
}
else {
VALUE tmp = rb_check_string_type(g);
@@ -2494,7 +2494,7 @@ proc_setgroups(VALUE obj, VALUE ary)
i = setgroups(ngroups, groups);
if (i == -1)
- rb_sys_fail(0);
+ rb_sys_fail(0);
return proc_getgroups(obj);
#else