Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

After sending the STOP signal to a process, it stops working as expected, but still accepts TCP connections. So is it working anyhow?

share|improve this question
1  
Sounds like the operating system is excepting them on your behalf, I think this happens to reduce latency. –  richard Sep 27 '12 at 22:17
add comment

1 Answer

up vote 2 down vote accepted

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 start to use the connected socket.

So connections are occurring but there isn't any real activity (mail being sent, web pages being served, etc.) while the process is stopped.

share|improve this answer
    
Sounds plausible. Just wanted to add there is activity. Data sent to the process over the connection is acknowledged. –  Holy Sheet Sep 28 '12 at 7:10
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.