mirror of https://github.com/mirror/busybox.git
nc: use symbolic SHUT_WR instead of literal 1
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>1_22_stable
parent
ad546ec606
commit
ca54b662e7
|
@ -261,7 +261,7 @@ int nc_main(int argc, char **argv)
|
|||
if (nread < 1) {
|
||||
/* Close outgoing half-connection so they get EOF,
|
||||
* but leave incoming alone so we can see response */
|
||||
shutdown(cfd, 1);
|
||||
shutdown(cfd, SHUT_WR);
|
||||
FD_CLR(STDIN_FILENO, &readfds);
|
||||
}
|
||||
ofd = cfd;
|
||||
|
|
Loading…
Reference in New Issue