summaryrefslogtreecommitdiff
path: root/udevsend.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 /udevsend.c
parent5a73b25fd6673134328443af04afe7bde0060d72 (diff)
[PATCH] wait() for specific pid to return from fork().
Diffstat (limited to 'udevsend.c')
-rw-r--r--udevsend.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udevsend.c b/udevsend.c
index 84c46bc0c2..b564d6453f 100644
--- a/udevsend.c
+++ b/udevsend.c
@@ -82,7 +82,7 @@ static int start_daemon(void)
dbg("fork of helper failed");
return -1;
default:
- wait(NULL);
+ waitpid(pid, NULL, 0);
}
return 0;
}
@@ -103,7 +103,7 @@ static void run_udev(const char *subsystem)
dbg("fork of child failed");
break;
default:
- wait(NULL);
+ waitpid(pid, NULL, 0);
}
}