Ben Barrett wrote: > When a process starts that uses a port, say apache httpd, and then it > bombs out badly or quits unexpectedly, how can one recover the locked > port(s)?
The kernel cleans up automatically. When the process exits (voluntarily or not), the kernel closes all its descriptors. For TCP sockets, that means shutting down the connection. > And in general, how can one tell what processes are bound to what ports? lsof -i Run it as root or as yourself. Also netstat and netstat -a. > Also: I am confused about ports being "open" when there are no services > running on them... So am I. lsof will tell you who has it open. > I can telnet to some specific ports, and it connects me and then > immediately disconnects me again... Could be tcpwrappers doing that. Do you have them installed? > Other ports are fully "closed" and will not conenct, hurrah this is what > I want! -- Bob Miller K<bob> kbobsoft software consulting http://kbobsoft.com [EMAIL PROTECTED]
