From b899234bd657fa1ae1c71315326c3fe2cd9b6cec Mon Sep 17 00:00:00 2001 From: John Crispin Date: Wed, 5 Nov 2014 16:22:31 +0100 Subject: [PATCH] call setsid during startup. this fixes a bug where pgrp was not set up properly leading to a trail of carnage; Signed-off-by: John Crispin --- procd.c | 1 + 1 file changed, 1 insertion(+) diff --git a/procd.c b/procd.c index 8dcd924..7528e60 100644 --- 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(); -- 2.30.2