Bug 14876
| Summary: | inetd accumulates fd's | ||
|---|---|---|---|
| Product: | [Retired] Red Hat Linux | Reporter: | ae |
| Component: | inetd | Assignee: | Jeff Johnson <jbj> |
| Status: | CLOSED DUPLICATE | QA Contact: | |
| Severity: | medium | Docs Contact: | |
| Priority: | high | ||
| Version: | 6.2 | ||
| Target Milestone: | --- | ||
| Target Release: | --- | ||
| Hardware: | i386 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Fixed In Version: | Doc Type: | Bug Fix | |
| Doc Text: | Story Points: | --- | |
| Clone Of: | Environment: | ||
| Last Closed: | 2000-08-03 10:27:39 UTC | Type: | --- |
| Regression: | --- | Mount Type: | --- |
| Documentation: | --- | CRM: | |
| Verified Versions: | Category: | --- | |
| oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
| Cloudforms Team: | --- | Target Upstream Version: | |
| Embargoed: | |||
|
Description
ae
2000-07-31 12:45:34 UTC
*** Bug 14687 has been marked as a duplicate of this bug. *** *** Bug 12779 has been marked as a duplicate of this bug. *** heh.
--- netkit-base-0.16/inetd/inetd.c~ Wed Nov 24 06:31:53 1999
+++ netkit-base-0.16/inetd/inetd.c Thu Aug 3 20:25:17 2000
@@ -485,12 +485,12 @@
FD_CLR(sep->se_fd, &allsock);
nsock--;
}
- if (!sep->se_wait && sep->se_socktype == SOCK_STREAM)
- close(ctrl);
}
else {
sep->se_bi->bi_fn(ctrl, sep);
}
+ if (ctrl != sep->se_fd)
+ close(ctrl);
}
static
|