aboutsummaryrefslogtreecommitdiff
path: root/devel/libdaemon/files/patch-libdaemond_dfork.c
diff options
context:
space:
mode:
Diffstat (limited to 'devel/libdaemon/files/patch-libdaemond_dfork.c')
-rw-r--r--devel/libdaemon/files/patch-libdaemond_dfork.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/devel/libdaemon/files/patch-libdaemond_dfork.c b/devel/libdaemon/files/patch-libdaemond_dfork.c
new file mode 100644
index 000000000000..2871d27f26db
--- /dev/null
+++ b/devel/libdaemon/files/patch-libdaemond_dfork.c
@@ -0,0 +1,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);