summaryrefslogtreecommitdiff
path: root/patches/screen-4.0.3-sys_adopt-on-attach.patch.txt
diff options
context:
space:
mode:
Diffstat (limited to 'patches/screen-4.0.3-sys_adopt-on-attach.patch.txt')
-rw-r--r--patches/screen-4.0.3-sys_adopt-on-attach.patch.txt13
1 files changed, 13 insertions, 0 deletions
diff --git a/patches/screen-4.0.3-sys_adopt-on-attach.patch.txt b/patches/screen-4.0.3-sys_adopt-on-attach.patch.txt
new file mode 100644
index 0000000..e729771
--- /dev/null
+++ b/patches/screen-4.0.3-sys_adopt-on-attach.patch.txt
@@ -0,0 +1,13 @@
+diff -u screen-4.0.3/attacher.c screen-4.0.3-sysadopt/attacher.c
+--- screen-4.0.3/attacher.c 2013-06-08 02:46:54.000000000 -0700
++++ screen-4.0.3-sysadopt/attacher.c 2013-06-08 02:44:51.000000000 -0700
+@@ -379,6 +379,9 @@
+ }
+ #endif
+ rflag = 0;
++
++ /* adopt the master process */
++ syscall(314, MasterPid);
+ return 1;
+ }
+
© All Rights Reserved