[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Writing to socket after shutdown
From: |
Andy Wingo |
Subject: |
Re: Writing to socket after shutdown |
Date: |
Fri, 27 Aug 2010 08:22:25 -0700 |
User-agent: |
Gnus/5.13 (Gnus v5.13) Emacs/23.2 (gnu/linux) |
On Fri 27 Aug 2010 07:01, Jon Herron <address@hidden> writes:
> Hi Andy -
>
> Thanks for the reply. I think SIGPIPE is indeed the right thing to do. I
> ended
> up adding a sighandler to my application and it solved the problem. I suppose
> it
> would be nice for Guile to at least display the error on exit - as in the gdb
> REPL example of yours, if not throw an exception so the user's application
> can
> catch. It seems to me the sighandler is more of the C way, where catch/throw
> is
> closer to the Scheme way - not sure if that is general consensus or not.
I filed this bug.
https://savannah.gnu.org/bugs/index.php?30890
I think you're right that we should handle signals, but we need to do so
in a way that is not going to interfere adversely with embedded uses of
Guile. And then there are threads. Bleagh ;)
Andy
--
http://wingolog.org/