call setsid during startup.
authorJohn Crispin <blogic@openwrt.org>
Wed, 5 Nov 2014 15:22:31 +0000 (16:22 +0100)
committerJohn Crispin <blogic@openwrt.org>
Wed, 5 Nov 2014 15:23:20 +0000 (16:23 +0100)
this fixes a bug where pgrp was not set up properly leading to a trail of carnage;

Signed-off-by: John Crispin <blogic@openwrt.org>
procd.c

diff --git a/procd.c b/procd.c
index 8dcd924..7528e60 100644 (file)
--- a/procd.c
+++ b/procd.c
@@ -62,6 +62,7 @@ int main(int argc, char **argv)
                        return usage(argv[0]);
                }
        }
+       setsid();
        uloop_init();
        procd_signal();
        trigger_init();