summaryrefslogtreecommitdiff
path: root/process.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-27 13:42:49 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-06-27 13:42:49 +0000
commit797fb39f1e91cb19decc1be3dadf9b2de438eae2 (patch)
tree13e3180d55118fc0e3ec6c1304f5ce377d93eb43 /process.c
parent636ae897c6e1a217fbba3cbe0eca12aabd9bb411 (diff)
downloadruby-797fb39f1e91cb19decc1be3dadf9b2de438eae2.tar.gz
use rb_pid_t instead of pid_t
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63770 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 69b6632955..d207f46104 100644
--- a/process.c
+++ b/process.c
@@ -916,7 +916,7 @@ rb_nativethread_cond_t *rb_sleep_cond_get(const rb_execution_context_t *);
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)
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)
}
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;