386BSD 0.1 development
authorWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Mon, 13 Jul 1992 10:18:28 +0000 (02:18 -0800)
committerWilliam F. Jolitz <wjolitz@soda.berkeley.edu>
Mon, 13 Jul 1992 10:18:28 +0000 (02:18 -0800)
Work on file usr/src/usr.bin/tip/cmds.c.rej

Co-Authored-By: Lynne Greer Jolitz <ljolitz@cardio.ucsf.edu>
Synthesized-from: 386BSD-0.1

usr/src/usr.bin/tip/cmds.c.rej [new file with mode: 0644]

diff --git a/usr/src/usr.bin/tip/cmds.c.rej b/usr/src/usr.bin/tip/cmds.c.rej
new file mode 100644 (file)
index 0000000..c71bcc3
--- /dev/null
@@ -0,0 +1,22 @@
+***************
+*** 531,539 ****
+        } else {
+                register int i;
+  
+!               dup2(FD, 3);
+!               dup2(3, 4);
+!               for (i = 5; i < 20; i++)
+                        close(i);
+                signal(SIGINT, SIG_DFL);
+                signal(SIGQUIT, SIG_DFL);
+--- 529,538 ----
+        } else {
+                register int i;
+  
+!               dup2(1, 2);
+!               dup2(FD, 0);
+!               dup2(0, 1);
+!               for (i = 3; i < 20; i++)
+                        close(i);
+                signal(SIGINT, SIG_DFL);
+                signal(SIGQUIT, SIG_DFL);