diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/usr.bin/nc/netcat.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/usr.bin/nc/netcat.c b/src/usr.bin/nc/netcat.c index 88a2a25053..905ae4ea6d 100644 --- a/src/usr.bin/nc/netcat.c +++ b/src/usr.bin/nc/netcat.c | |||
| @@ -1,4 +1,4 @@ | |||
| 1 | /* $OpenBSD: netcat.c,v 1.128 2015/03/26 10:36:03 tobias Exp $ */ | 1 | /* $OpenBSD: netcat.c,v 1.129 2015/03/26 21:22:50 tobias Exp $ */ |
| 2 | /* | 2 | /* |
| 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> | 3 | * Copyright (c) 2001 Eric Jackson <ericj@monkey.org> |
| 4 | * | 4 | * |
| @@ -44,15 +44,16 @@ | |||
| 44 | 44 | ||
| 45 | #include <err.h> | 45 | #include <err.h> |
| 46 | #include <errno.h> | 46 | #include <errno.h> |
| 47 | #include <fcntl.h> | ||
| 48 | #include <limits.h> | ||
| 47 | #include <netdb.h> | 49 | #include <netdb.h> |
| 48 | #include <poll.h> | 50 | #include <poll.h> |
| 51 | #include <signal.h> | ||
| 49 | #include <stdarg.h> | 52 | #include <stdarg.h> |
| 50 | #include <stdio.h> | 53 | #include <stdio.h> |
| 51 | #include <stdlib.h> | 54 | #include <stdlib.h> |
| 52 | #include <string.h> | 55 | #include <string.h> |
| 53 | #include <unistd.h> | 56 | #include <unistd.h> |
| 54 | #include <fcntl.h> | ||
| 55 | #include <limits.h> | ||
| 56 | #include "atomicio.h" | 57 | #include "atomicio.h" |
| 57 | 58 | ||
| 58 | #ifndef SUN_LEN | 59 | #ifndef SUN_LEN |
| @@ -141,6 +142,8 @@ main(int argc, char *argv[]) | |||
| 141 | uport = NULL; | 142 | uport = NULL; |
| 142 | sv = NULL; | 143 | sv = NULL; |
| 143 | 144 | ||
| 145 | signal(SIGPIPE, SIG_IGN); | ||
| 146 | |||
| 144 | while ((ch = getopt(argc, argv, | 147 | while ((ch = getopt(argc, argv, |
| 145 | "46DdFhI:i:klNnO:P:p:rSs:tT:UuV:vw:X:x:z")) != -1) { | 148 | "46DdFhI:i:klNnO:P:p:rSs:tT:UuV:vw:X:x:z")) != -1) { |
| 146 | switch (ch) { | 149 | switch (ch) { |
