Re: [gnet-dev] Unix socket unlink func



On Thu, Oct 25, 2001 at 11:18:55AM -0400, David Helder wrote:
> 
> Libraries shouldn't install signal handlers -- is there another way to do
> this?  Maybe the path should be unlinked in socket_delete.  Then the
> socket could be deleted in the user's signal handler.

The library doesn't install a signal handler. examples/echoserver-unix.c
does, but that's just to cleanup the socket from the filesystem.  

All I added to the library was gnet_unix_socket_unlink() to do all of
the checking before unlinking.

M




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