netcat disappears from lsof (and ps etc) when reading from named pipe
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
netcat (Ubuntu) |
New
|
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/
netcat 19548 root mem REG 254,1 1364388 491544 /lib/tls/
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/
Filename: pool/main/
lsb_release -rd
Description: Ubuntu 8.04.1
Release: 8.04