[erlang-questions] Signal handling (TERM, INT etc)

Tony Finch dot@REDACTED
Mon Jul 7 23:25:24 CEST 2008


On Mon, 7 Jul 2008, Johnny Billquist wrote:
> Tony Finch wrote:
> > On Tue, 1 Jul 2008, Claes Wikström wrote:
> > >
> > > 1. Have a socket setup from the driver to the beam (over loopback)
> > > 2. in the sighandler write some data on the socket.
> >
> > Some of my friends recommend this technique for C programs too, so that it
> > becomes possible to select() for signals in the same way as other events.
>
> Why not check for EINTR as the possible reason for -1 as returned from
> select()? Even if you have a signal handler, the select() will return -1
> when a signal occurs.

Which signal?

Tony.
-- 
f.anthony.n.finch  <dot@REDACTED>  http://dotat.at/
SOUTHEAST ICELAND: NORTHEASTERLY 5 OR 6, OCCASIONALLY 7 IN SOUTHEAST.
MODERATE, OCCASIONALLY ROUGH IN SOUTHEAST. FAIR. MODERATE OR GOOD.


More information about the erlang-questions mailing list