artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f6bcd66
)
close(fdin) if fdin != fdout, shutdown otherwise, ok theo@
author
markus
<markus@openbsd.org>
Tue, 28 Mar 2000 20:22:49 +0000
(20:22 +0000)
committer
markus
<markus@openbsd.org>
Tue, 28 Mar 2000 20:22:49 +0000
(20:22 +0000)
usr.bin/ssh/serverloop.c
patch
|
blob
|
history
diff --git
a/usr.bin/ssh/serverloop.c
b/usr.bin/ssh/serverloop.c
index
a5ecfe9
..
d787894
100644
(file)
--- a/
usr.bin/ssh/serverloop.c
+++ b/
usr.bin/ssh/serverloop.c
@@
-369,7
+369,7
@@
process_output(fd_set * writeset)
#ifdef USE_PIPES
close(fdin);
#else
- if (fd
out == -1
)
+ if (fd
in != fdout
)
close(fdin);
else
shutdown(fdin, SHUT_WR); /* We will no longer send. */
@@
-495,7
+495,7
@@
server_loop(int pid, int fdin_arg, int fdout_arg, int fderr_arg)
#ifdef USE_PIPES
close(fdin);
#else
- if (fd
out == -1
)
+ if (fd
in != fdout
)
close(fdin);
else
shutdown(fdin, SHUT_WR); /* We will no longer send. */