ruby-changes:27816
From: kazu <ko1@a...>
Date: Fri, 22 Mar 2013 01:13:02 +0900 (JST)
Subject: [ruby-changes:27816] kazu:r39868 (trunk): use rb_pid_t instead of pid_t.
kazu 2013-03-22 01:11:32 +0900 (Fri, 22 Mar 2013) New Revision: 39868 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=39868 Log: use rb_pid_t instead of pid_t. * process.c (rb_execarg_addopt, run_exec_pgroup): use rb_pid_t instead of pid_t. * ext/pty/pty.c (raise_from_check, pty_check): ditto. Modified files: trunk/ChangeLog trunk/ext/pty/pty.c trunk/process.c Index: ChangeLog =================================================================== --- ChangeLog (revision 39867) +++ ChangeLog (revision 39868) @@ -1,3 +1,10 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1 +Fri Mar 22 01:00:17 2013 Kazuhiro NISHIYAMA <zn@m...> + + * process.c (rb_execarg_addopt, run_exec_pgroup): use rb_pid_t + instead of pid_t. + + * ext/pty/pty.c (raise_from_check, pty_check): ditto. + Fri Mar 22 00:04:15 2013 NARUSE, Yui <naruse@r...> * addr2line.c (rb_dump_backtrace_with_lines): output line at once. Index: process.c =================================================================== --- process.c (revision 39867) +++ process.c (revision 39868) @@ -1619,7 +1619,7 @@ rb_execarg_addopt(VALUE execarg_obj, VAL https://github.com/ruby/ruby/blob/trunk/process.c#L1619 id = SYM2ID(key); #ifdef HAVE_SETPGID if (id == rb_intern("pgroup")) { - pid_t pgroup; + rb_pid_t pgroup; if (eargp->pgroup_given) { rb_raise(rb_eArgError, "pgroup option specified twice"); } @@ -2783,7 +2783,7 @@ run_exec_pgroup(const struct rb_execarg https://github.com/ruby/ruby/blob/trunk/process.c#L2783 * (Is there an environment which has setpgid but no FD_CLOEXEC?) */ int ret; - pid_t pgroup; + rb_pid_t pgroup; pgroup = eargp->pgroup_pgid; if (pgroup == -1) Index: ext/pty/pty.c =================================================================== --- ext/pty/pty.c (revision 39867) +++ ext/pty/pty.c (revision 39868) @@ -604,9 +604,9 @@ pty_getpty(int argc, VALUE *argv, VALUE https://github.com/ruby/ruby/blob/trunk/ext/pty/pty.c#L604 return res; } -NORETURN(static void raise_from_check(pid_t pid, int status)); +NORETURN(static void raise_from_check(rb_pid_t pid, int status)); static void -raise_from_check(pid_t pid, int status) +raise_from_check(rb_pid_t pid, int status) { const char *state; char buf[1024]; @@ -654,7 +654,7 @@ static VALUE https://github.com/ruby/ruby/blob/trunk/ext/pty/pty.c#L654 pty_check(int argc, VALUE *argv, VALUE self) { VALUE pid, exc; - pid_t cpid; + rb_pid_t cpid; int status; rb_scan_args(argc, argv, "11", &pid, &exc); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/