Date: Thu, 4 Oct 2001 13:22:45 +0300 From: Ruslan Ermilov <ru@FreeBSD.ORG> To: Bill.Melvin@esc.edu Cc: freebsd-security@FreeBSD.ORG Subject: Re: odd sockstat output Message-ID: <20011004132245.B48758@sunbay.com> In-Reply-To: <OF9CA51A5E.4439ABE0-ON85256ADA.007376B4@esc.edu>; from Bill.Melvin@esc.edu on Wed, Oct 03, 2001 at 05:04:40PM -0400 References: <OF9CA51A5E.4439ABE0-ON85256ADA.007376B4@esc.edu>
next in thread | previous in thread | raw e-mail | index | archive | help
On Wed, Oct 03, 2001 at 05:04:40PM -0400, Bill.Melvin@esc.edu wrote: > > Why would sockstat show me something like this: > > USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS > root sshd 4580 5 tcp4 192.168.120.1:22 192.168.120.2:38 > root sshd 155 4 tcp4 *:22 *:* > root syslogd 129 5 udp4 *:514 *:* > root syslogd 129 18 ? ? ? > > Line with the ?s. > Same PID but different FD. I did another sockstat > right away but it was gone. > sockstat(1) is not atomical. It calls netstat(1) first, then fstat(1). Most probably, syslogd(8) closed the FD in between. Cheers, -- Ruslan Ermilov Oracle Developer/DBA, ru@sunbay.com Sunbay Software AG, ru@FreeBSD.org FreeBSD committer, +380.652.512.251 Simferopol, Ukraine http://www.FreeBSD.org The Power To Serve http://www.oracle.com Enabling The Information Age To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-security" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20011004132245.B48758>