Problems with server shutdown
- From: "John Smith" <SMasiutin@xxxxxxxxx>
- Date: 27 Oct 2006 06:38:34 -0700
I have TCP server that accepts client and then receives data from them.
Server has SIGTERM handler, on which all sockets are closed and server
exits.
If server has several clients connected and I manually send it kill
-TERM <server_pid> everything goes correct: client application's
sockets are disconnected and server shuts down the right way. But if I
reboot machine some strange behavior occur: client application's
sockets still think they are connected, and after server receives
SIGTERM all semaphores that were in blocked state become unblocked.
Can someone explain me what's going on?
.
- Follow-Ups:
- Re: Problems with server shutdown
- From: phil-news-nospam
- Re: Problems with server shutdown
- Prev by Date: Re: question about linux CPU scheduling
- Next by Date: Re: System calls parameter restrictions
- Previous by thread: Linux console interface
- Next by thread: Re: Problems with server shutdown
- Index(es):
Relevant Pages
|