From a83e6202c34cf742336d4d8b846b76bcd993c9c1 Mon Sep 17 00:00:00 2001 From: Marius Halden Date: Thu, 29 Oct 2015 01:18:15 +0100 Subject: Rename have_child() -> have_children() --- piper.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/piper.c b/piper.c index 1e951f8..39e76b5 100644 --- a/piper.c +++ b/piper.c @@ -138,7 +138,7 @@ run_cmd(struct proc *proc) } int -have_child() +have_children() { int i; for (i = 0; i < NUM_PROCS; i++) { @@ -265,7 +265,7 @@ main(int argc, char **argv) procs[0]._stderr = fds[1]; procs[1]._stdin = fds[0]; - while (!terminate || have_child()) { + while (!terminate || have_children()) { pid_t pid; if (!terminate) -- cgit v1.2.3