summaryrefslogtreecommitdiff
path: root/udevsend.c
diff options
context:
space:
mode:
authorkay.sievers@vrfy.org <kay.sievers@vrfy.org>2004-01-27 00:40:12 -0800
committerGreg KH <gregkh@suse.de>2005-04-26 21:13:19 -0700
commit2a25816ff0079247d7f868621951739e6d58c885 (patch)
tree4af86ed5d0017ae0a89b9abd35151a3b065343b5 /udevsend.c
parent8af67a67c2542a9d4eb2371dfba661c65d48d4b6 (diff)
[PATCH] udev - trivial style cleanup
Trivial style cleanup, to be consistent. And add chdir("/") to the daemon so one can umout its filesystem, while we are running :)
Diffstat (limited to 'udevsend.c')
-rw-r--r--udevsend.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/udevsend.c b/udevsend.c
index 3f3bbacbc2..0a305e50c4 100644
--- a/udevsend.c
+++ b/udevsend.c
@@ -87,6 +87,7 @@ static int start_daemon(void)
case 0:
/* daemon */
setsid();
+ chdir("/");
execl(UDEVD_EXEC, "udevd", NULL);
dbg("exec of daemon failed");
exit(1);