From: William F. Jolitz Date: Mon, 13 Jul 1992 10:18:28 +0000 (-0800) Subject: 386BSD 0.1 development X-Git-Tag: 386BSD-0.1~50 X-Git-Url: https://git.subgeniuskitty.com/unix-history/.git/commitdiff_plain/46212f1080547c62b59e1c0ca748d24a16fafa5c 386BSD 0.1 development Work on file usr/src/usr.bin/tip/cmds.c.rej Co-Authored-By: Lynne Greer Jolitz Synthesized-from: 386BSD-0.1 --- diff --git a/usr/src/usr.bin/tip/cmds.c.rej b/usr/src/usr.bin/tip/cmds.c.rej new file mode 100644 index 0000000000..c71bcc3098 --- /dev/null +++ b/usr/src/usr.bin/tip/cmds.c.rej @@ -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);