Re: [gnet-dev] Unix socket unlink func
- From: Mark Ferlatte <ferlatte cryptio net>
- To: David Helder <dhelder umich edu>
- Cc: gnet-dev gnetlibrary org
- Subject: Re: [gnet-dev] Unix socket unlink func
- Date: Thu, 25 Oct 2001 09:57:19 -0700
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]