summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMarius Halden <marius.h@lden.org>2015-10-29 01:18:15 +0100
committerMarius Halden <marius.h@lden.org>2015-10-29 01:18:15 +0100
commita83e6202c34cf742336d4d8b846b76bcd993c9c1 (patch)
treec83d75ba9379e540a6d44e52164e6ee68a78c2c9
parentc6c1d612f10151fae3de352322f2c95ca17d4eb0 (diff)
downloadpiper-a83e6202c34cf742336d4d8b846b76bcd993c9c1.tar.gz
piper-a83e6202c34cf742336d4d8b846b76bcd993c9c1.tar.bz2
piper-a83e6202c34cf742336d4d8b846b76bcd993c9c1.tar.xz
Rename have_child() -> have_children()
-rw-r--r--piper.c4
1 files 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)