summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/serverloop.c
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1999-10-03 19:22:40 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1999-10-03 19:22:40 +0000
commit934bbe968364c24452edd2fc51324129a658b0df (patch)
treec0eaff1a0c73b9ad857023e1a0d0bf30703dd180 /usr.bin/ssh/serverloop.c
parent77e53bad3c551494891f8d12464b57eddc79664b (diff)
use SHUT_* symbols
Diffstat (limited to 'usr.bin/ssh/serverloop.c')
-rw-r--r--usr.bin/ssh/serverloop.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.bin/ssh/serverloop.c b/usr.bin/ssh/serverloop.c
index 5fa749dceab..063e0f42088 100644
--- a/usr.bin/ssh/serverloop.c
+++ b/usr.bin/ssh/serverloop.c
@@ -360,7 +360,7 @@ void process_output(fd_set *writeset)
#ifdef USE_PIPES
close(fdin);
#else
- shutdown(fdin, 1); /* We will no longer send. */
+ shutdown(fdin, SHUT_WR); /* We will no longer send. */
#endif
fdin = -1;
}
@@ -484,7 +484,7 @@ void server_loop(int pid, int fdin_arg, int fdout_arg, int fderr_arg)
#ifdef USE_PIPES
close(fdin);
#else
- shutdown(fdin, 1); /* We will no longer send. */
+ shutdown(fdin, SHUT_WR); /* We will no longer send. */
#endif
fdin = -1;
}
@@ -566,7 +566,7 @@ void server_loop(int pid, int fdin_arg, int fdout_arg, int fderr_arg)
#ifdef USE_PIPES
close(fdout);
#else
- shutdown(fdout, 0);
+ shutdown(fdout, SHUT_RD);
#endif
fdout = -1;
fdout_eof = 1;
@@ -574,7 +574,7 @@ void server_loop(int pid, int fdin_arg, int fdout_arg, int fderr_arg)
#ifdef USE_PIPES
close(fderr);
#else
- shutdown(fderr, 0);
+ shutdown(fderr, SHUT_RD);
#endif
fderr = -1;
fderr_eof = 1;
@@ -582,7 +582,7 @@ void server_loop(int pid, int fdin_arg, int fdout_arg, int fderr_arg)
#ifdef USE_PIPES
close(fdin);
#else
- shutdown(fdin, 1);
+ shutdown(fdin, SHUT_WR);
#endif
fdin = -1;