summaryrefslogtreecommitdiff
path: root/networking
diff options
context:
space:
mode:
Diffstat (limited to 'networking')
-rw-r--r--networking/inetd.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/networking/inetd.c b/networking/inetd.c
index 9ea7f9c..8dca8fc 100644
--- a/networking/inetd.c
+++ b/networking/inetd.c
@@ -1638,8 +1638,7 @@ discard_stream(int s, servtab_t *sep)
inetd_setproctitle(sep->se_service, s);
while (1) {
- errno = 0;
- if (read(s, buffer, sizeof(buffer)) <= 0 && errno != EINTR)
+ if (safe_read(s, buffer, sizeof(buffer)) <= 0)
exit(0);
}
}