summaryrefslogtreecommitdiffstats
path: root/libdaemon/dfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'libdaemon/dfork.c')
-rw-r--r--libdaemon/dfork.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libdaemon/dfork.c b/libdaemon/dfork.c
index 2fa9f30..c84cb58 100644
--- a/libdaemon/dfork.c
+++ b/libdaemon/dfork.c
@@ -209,7 +209,7 @@ pid_t daemon_fork(void) {
signal(SIGTSTP, SIG_IGN);
setsid();
- setpgrp();
+ setpgid(0,0);
if ((tty_fd = open("/dev/tty", O_RDWR)) >= 0) {
ioctl(tty_fd, TIOCNOTTY, NULL);