summaryrefslogtreecommitdiffstats
path: root/piper.c
diff options
context:
space:
mode:
Diffstat (limited to 'piper.c')
-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)