[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

RE: How to make kernel release socket..

You probably want to read about "setsockopt".  In particular, the SO_REUSEADDR

Install a signal handler to catch the SIGPIPE and do what you want.  See
"sigaction" and other signal man pages.


From: 	Won-Ho Kye[SMTP:whkye@softforum.co.kr]
Sent: 	Thursday, April 02, 1998 11:34 PM
To: 	'debian-user@lists.debian.org'
Cc: 	The recipient's address is unknown.
Subject: 	How to make kernel release socket..

<<File: vcard.vcf>>
Hi Firends !

I try to implement server program for specific purpose.
If the server is killed, I found that the server can't binding again
the socket for about 1 min.
How to make kernel release socket, instantaneously, when the
process killed?
In addition, when the client is died without closing socket,
I found that the server receive "SIGPIPE" and then server died..
How can we make the server ignore the "SIGPIPE" signal...

Thanks for any helps


To UNSUBSCRIBE, email to debian-user-request@lists.debian.org
with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org

Reply to: