summaryrefslogtreecommitdiff
path: root/devel/libdaemon/files/patch-libdaemond_dfork.c
blob: 2871d27f26db725a7d44e53059e552eb982dc29a (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
--- libdaemon/dfork.c.orig	Mon Oct 17 22:58:04 2005
+++ libdaemon/dfork.c	Mon Oct 17 23:11:36 2005
@@ -209,7 +209,7 @@
 	    signal(SIGTSTP, SIG_IGN);
 	    
 	    setsid();
-	    setpgrp();
+	    setpgrp(0, getpid());
             
 	    if ((tty_fd = open("/dev/tty", O_RDWR)) >= 0) {
 		ioctl(tty_fd, TIOCNOTTY, NULL);