(loop): close some omre fd's

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@7151 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1999-10-17 10:26:45 +00:00
parent 1d35aa3ab8
commit 9fb0a9020d

View File

@@ -418,6 +418,7 @@ loop (int from0, int to0,
syslog_and_die ("read: %m");
else if (ret == 0) {
close (from0);
close (to0);
FD_CLR(from0, &real_readset);
} else
net_write (to0, buf, ret);
@@ -428,6 +429,7 @@ loop (int from0, int to0,
syslog_and_die ("read: %m");
else if (ret == 0) {
close (from1);
close (to1);
FD_CLR(from1, &real_readset);
if (--count == 0)
exit (0);
@@ -440,6 +442,7 @@ loop (int from0, int to0,
syslog_and_die ("read: %m");
else if (ret == 0) {
close (from2);
close (to2);
FD_CLR(from2, &real_readset);
if (--count == 0)
exit (0);