summaryrefslogtreecommitdiff
path: root/namedev.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-11-05 13:16:56 +0100
committerGreg KH <gregkh@suse.de>2005-04-26 22:09:26 -0700
commite920fed3499aa1445657b62499a11348faa3b24e (patch)
tree44c482926229fc7480186c80928f4417daf24e37 /namedev.c
parent5a73b25fd6673134328443af04afe7bde0060d72 (diff)
[PATCH] wait() for specific pid to return from fork().
Diffstat (limited to 'namedev.c')
-rw-r--r--namedev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/namedev.c b/namedev.c
index b142dda4fe..f3fb3ff7ed 100644
--- a/namedev.c
+++ b/namedev.c
@@ -444,7 +444,7 @@ static int execute_program(const char *path, char *value, int len)
dbg("result is '%s'", value);
close(fds[0]);
- wait(&status);
+ waitpid(pid, &status, 0);
if (!WIFEXITED(status) || (WEXITSTATUS(status) != 0)) {
dbg("exec program status 0x%x", status);