Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 30 Jan 2003 16:09:39 -0800 (PST)
From:      Max Okumoto <okumoto@ucsd.edu>
To:        FreeBSD-gnats-submit@FreeBSD.org
Subject:   bin/47694: Inetd leaves some sockets open.
Message-ID:  <200301310009.h0V09dgj031094@oecpc18.ucsd.edu>

next in thread | raw e-mail | index | archive | help

>Number:         47694
>Category:       bin
>Synopsis:       Inetd leaves some sockets open.
>Confidential:   no
>Severity:       serious
>Priority:       medium
>Responsible:    freebsd-bugs
>State:          open
>Quarter:        
>Keywords:       
>Date-Required:
>Class:          sw-bug
>Submitter-Id:   current-users
>Arrival-Date:   Thu Jan 30 16:10:07 PST 2003
>Closed-Date:
>Last-Modified:
>Originator:     Max Okumoto
>Release:        FreeBSD 4.6.2-RELEASE-p2 i386
>Organization:
>Environment:
System: FreeBSD oec-server2.ucsd.edu 4.6.2-RELEASE-p2 FreeBSD 4.6.2-RELEASE-p2 #0: Sun Sep 22 19:24:16 PDT 2002 troot@oec-server2.ucsd.edu:/usr/obj/usr/src/sys/OEC_SERVER2 i386

University of Washington IMAP toolkit
Version 2002a of IMAP toolkit
Copyright 1988-2002 University of Washington

>Description:
	Inetd is leaving file descriptors open when it execs the
	service binary.  When enabling both comsat(biff) and imap
	on the machine, I found that when I restart inetd, a syslog
	message is generated that indicates that inetd can't reopen
	port 512(comsat).  Looking at the output of sockstat will
	show same file descriptor open for all child imapd servers.

>How-To-Repeat:
	Enable comsat and imaps
	Boot machine
	Connect to imap server
	run sockstat and grep for imapd and inetd.

USER     COMMAND    PID   FD PROTO  LOCAL ADDRESS         FOREIGN ADDRESS
jlgibson imapd    63720    0 tcp4   132.239.8.82:993      199.106.117.70:64452
jlgibson imapd    63720    1 tcp4   132.239.8.82:993      199.106.117.70:64452
jlgibson imapd    63720    4 udp4   *:901                 *:*
jlgibson imapd    63720   11 udp4   *:512                 *:*
jlgibson imapd    63716    0 tcp4   132.239.8.82:993      199.106.117.70:64446
jlgibson imapd    63716    1 tcp4   132.239.8.82:993      199.106.117.70:64446
jlgibson imapd    63716    4 udp4   *:905                 *:*
jlgibson imapd    63716   11 udp4   *:512                 *:*
okumoto  imapd    63710    0 tcp4   132.239.8.82:993      132.239.18.178:3870
okumoto  imapd    63710    1 tcp4   132.239.8.82:993      132.239.18.178:3870
okumoto  imapd    63710    4 udp4   *:913                 *:*
okumoto  imapd    63710   11 udp4   *:512                 *:*
oconnor  imapd    63671    0 tcp4   132.239.8.82:993      132.239.18.171:3069
oconnor  imapd    63671    1 tcp4   132.239.8.82:993      132.239.18.171:3069  
oconnor  imapd    63671    4 udp4   *:931                 *:*                  
oconnor  imapd    63671   11 udp4   *:512                 *:*                  
scottand imapd    62520    0 tcp4   132.239.8.82:993      132.239.8.27:4348    
scottand imapd    62520    1 tcp4   132.239.8.82:993      132.239.8.27:4348    
scottand imapd    62520    4 udp4   *:796                 *:*                  
ratcliff imapd    62493    0 tcp4   132.239.8.82:993      132.239.8.7:59425    
ratcliff imapd    62493    1 tcp4   132.239.8.82:993      132.239.8.7:59425    
ratcliff imapd    62493    4 udp4   *:829                 *:*                  
jpr      imapd    62492    0 tcp4   132.239.8.82:993      132.239.8.7:59424    
jpr      imapd    62492    1 tcp4   132.239.8.82:993      132.239.8.7:59424    
jpr      imapd    62492    4 udp4   *:828                 *:*                  
root     inetd    54260    4 tcp4   *:143                 *:*
root     inetd    54260    6 tcp4   *:110                 *:*
root     inetd    54260    7 tcp4   *:993                 *:*
root     inetd    54260    8 tcp4   *:995                 *:*
root     inetd    54260   11 udp4   *:512                 *:*
	
>Fix:

	


>Release-Note:
>Audit-Trail:
>Unformatted:

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-bugs" in the body of the message




Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200301310009.h0V09dgj031094>