projects
/
unix-history
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
tags
|
clone url
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
blame
|
history
|
raw
|
HEAD
386BSD 0.1 development
[unix-history]
/
usr
/
src
/
usr.bin
/
tip
/
cmds.c.rej
***************
*** 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);