After sending the STOP signal to a process, it stops working as expected, but still accepts TCP connections. So is it working anyhow?
1 Answer
Once a Unix process binds an IP address and port to a stream socket, the kernel begins accepting TCP connections for that address/port and continues until the socket is unbound or closed. The process gains access to the connections via the accept() system call, but the connections are happening regardless. Beyond the initial TCP handshake, the connection is idle until accept() is called and the process starts to use the connected socket. The kernel will also accept, buffer and acknowledge a system-specific amount of data before accept() is called.
So connections are occurring but there isn't any real activity (mail being sent, web pages being served, etc.) while the process is stopped.
-
Sounds plausible. Just wanted to add there is activity. Data sent to the process over the connection is acknowledged. Sep 28, 2012 at 7:10