aboutsummaryrefslogtreecommitdiff
path: root/security/putty/files/patch-unix__uxpgnt.c
diff options
context:
space:
mode:
Diffstat (limited to 'security/putty/files/patch-unix__uxpgnt.c')
-rw-r--r--security/putty/files/patch-unix__uxpgnt.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/security/putty/files/patch-unix__uxpgnt.c b/security/putty/files/patch-unix__uxpgnt.c
new file mode 100644
index 000000000000..3ef98d5849fa
--- /dev/null
+++ b/security/putty/files/patch-unix__uxpgnt.c
@@ -0,0 +1,11 @@
+--- uxpgnt.c.orig 2017-03-16 03:33:18.000000000 +0000
++++ uxpgnt.c 2017-03-16 03:33:18.000000000 +0000
+@@ -270,7 +270,7 @@
+ /* Get out of our previous process group, to avoid being
+ * blasted by passing signals. But keep our controlling tty,
+ * so we can keep checking to see if we still have one. */
+- setpgrp();
++ setpgrp(0,0);
+ } else {
+ /* Do that, but also leave our entire session and detach from
+ * the controlling tty (if any). */