summaryrefslogtreecommitdiff
path: root/networking/nc.c
diff options
context:
space:
mode:
Diffstat (limited to 'networking/nc.c')
-rw-r--r--networking/nc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/networking/nc.c b/networking/nc.c
index 7d4a6e0..27c58a8 100644
--- a/networking/nc.c
+++ b/networking/nc.c
@@ -183,7 +183,7 @@ int nc_main(int argc, char **argv)
nread = safe_read(fd, iobuf, sizeof(iobuf));
if (fd == cfd) {
if (nread < 1)
- exit(0);
+ exit(EXIT_SUCCESS);
ofd = STDOUT_FILENO;
} else {
if (nread<1) {