ruby-changes:51559
From: nobu <ko1@a...>
Date: Thu, 28 Jun 2018 14:08:34 +0900 (JST)
Subject: [ruby-changes:51559] nobu:r63770 (trunk): use rb_pid_t instead of pid_t
nobu 2018-06-27 22:42:49 +0900 (Wed, 27 Jun 2018) New Revision: 63770 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63770 Log: use rb_pid_t instead of pid_t Modified files: trunk/process.c Index: process.c =================================================================== --- process.c (revision 63769) +++ process.c (revision 63770) @@ -916,7 +916,7 @@ rb_nativethread_cond_t *rb_sleep_cond_ge https://github.com/ruby/ruby/blob/trunk/process.c#L916 void rb_sleep_cond_put(rb_nativethread_cond_t *); static void -waitpid_notify(struct waitpid_state *w, pid_t ret) +waitpid_notify(struct waitpid_state *w, rb_pid_t ret) { w->ret = ret; list_del_init(&w->wnode); @@ -931,7 +931,7 @@ waitpid_each(struct list_head *head) https://github.com/ruby/ruby/blob/trunk/process.c#L931 struct waitpid_state *w = 0, *next; list_for_each_safe(head, w, next, wnode) { - pid_t ret = do_waitpid(w->pid, &w->status, w->options | WNOHANG); + rb_pid_t ret = do_waitpid(w->pid, &w->status, w->options | WNOHANG); if (!ret) continue; if (ret == -1) w->errnum = errno; @@ -961,7 +961,7 @@ ruby_waitpid_all(rb_vm_t *vm) https://github.com/ruby/ruby/blob/trunk/process.c#L961 } static void -waitpid_state_init(struct waitpid_state *w, pid_t pid, int options) +waitpid_state_init(struct waitpid_state *w, rb_pid_t pid, int options) { w->ret = 0; w->pid = pid; -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/