summaryrefslogtreecommitdiff
path: root/dev_d.c
diff options
context:
space:
mode:
Diffstat (limited to 'dev_d.c')
-rw-r--r--dev_d.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/dev_d.c b/dev_d.c
index be85f52775..64c2544248 100644
--- a/dev_d.c
+++ b/dev_d.c
@@ -68,7 +68,7 @@ static int run_program(char *name)
break;
return -1;
default:
- wait(NULL);
+ waitpid(pid, NULL, 0);
}
return 0;