Re: [gnet-dev] Unix socket unlink func



Ok, I see.  Then why not call unix_socket_unlink from unix_socket_delete?

David


On Thu, 25 Oct 2001, Mark Ferlatte wrote:

> 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.


-- 
      __          _    __ David Helder - dhelder umich edu
  ___/ /__ __  __(_)__/ / <http://www.eecs.umich.edu/~dhelder>
 / _  / _ `/ |/ / / _  /  Jungle Monkey: <http://www.junglemonkey.net>
 |_,_/|_,_/|___/_/|_,_/   Paper CD Case: <http://www.papercdcase.com>




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