netcat disappears from lsof (and ps etc) when reading from named pipe

Bug #321981 reported by stilus on 2009-01-27
2
Affects Status Importance Assigned to Milestone
netcat (Ubuntu)
Undecided
Unassigned

Bug Description

Binary package hint: netcat-traditional

opening a netcat listener which reads from a named pipe, and then looking at lsof, I expected something like this (/dev/null is just an example here):
sudo netcat -l -p 3333 < /dev/null :

lsof |grep netcat:
netcat 19548 root cwd DIR 254,1 4096 1318919 /home/<user>
netcat 19548 root rtd DIR 254,1 4096 2 /
netcat 19548 root txt REG 254,1 19884 3440703 /bin/nc.traditional
netcat 19548 root mem REG 254,1 38412 491553 /lib/tls/i686/cmov/libnss_files-2.7.so
netcat 19548 root mem REG 254,1 1364388 491544 /lib/tls/i686/cmov/libc-2.7.so
netcat 19548 root mem REG 254,1 109152 493064 /lib/ld-2.7.so
netcat 19548 root 0r CHR 1,3 6670 /dev/null
netcat 19548 root 1u CHR 136,0 2 /dev/pts/0
netcat 19548 root 2u CHR 136,0 2 /dev/pts/0
netcat 19548 root 3r IPv4 133694 TCP *:3333 (LISTEN)

But I got this:

sudo netcat -l -p 3333 <namedpipe>
lsof |grep netcat:
<output nil, nada>

Same when just run as regular user, same when run as "nc" (and of course grepping on nc, or on /lib/tls/i686/cmov/libc-2.7.so which it uses)

Filename: pool/main/n/netcat/netcat_1.10-36_all.deb

lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04

stilus (stilus) on 2009-01-27
description: updated
To post a comment you must log in.
This report contains Public information  Edit
Everyone can see this information.

Other bug subscribers