(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:
@@ -418,6 +418,7 @@ loop (int from0, int to0,
|
|||||||
syslog_and_die ("read: %m");
|
syslog_and_die ("read: %m");
|
||||||
else if (ret == 0) {
|
else if (ret == 0) {
|
||||||
close (from0);
|
close (from0);
|
||||||
|
close (to0);
|
||||||
FD_CLR(from0, &real_readset);
|
FD_CLR(from0, &real_readset);
|
||||||
} else
|
} else
|
||||||
net_write (to0, buf, ret);
|
net_write (to0, buf, ret);
|
||||||
@@ -428,6 +429,7 @@ loop (int from0, int to0,
|
|||||||
syslog_and_die ("read: %m");
|
syslog_and_die ("read: %m");
|
||||||
else if (ret == 0) {
|
else if (ret == 0) {
|
||||||
close (from1);
|
close (from1);
|
||||||
|
close (to1);
|
||||||
FD_CLR(from1, &real_readset);
|
FD_CLR(from1, &real_readset);
|
||||||
if (--count == 0)
|
if (--count == 0)
|
||||||
exit (0);
|
exit (0);
|
||||||
@@ -440,6 +442,7 @@ loop (int from0, int to0,
|
|||||||
syslog_and_die ("read: %m");
|
syslog_and_die ("read: %m");
|
||||||
else if (ret == 0) {
|
else if (ret == 0) {
|
||||||
close (from2);
|
close (from2);
|
||||||
|
close (to2);
|
||||||
FD_CLR(from2, &real_readset);
|
FD_CLR(from2, &real_readset);
|
||||||
if (--count == 0)
|
if (--count == 0)
|
||||||
exit (0);
|
exit (0);
|
||||||
|
Reference in New Issue
Block a user