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 8dcd924ebabbc1cba4996401b43e988743ac03f8..7528e604ebdc546b381bc0febd99396202fa336f 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();