chicken-users
[Top][All Lists]
Advanced

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

[Chicken-users] Re: with-open-pipe to handle sigpipe


From: Ivan Shmakov
Subject: [Chicken-users] Re: with-open-pipe to handle sigpipe
Date: Thu, 17 Apr 2008 20:07:50 +0700
User-agent: Gnus/5.110006 (No Gnus v0.6) Emacs/21.4 (gnu/linux)

>>>>> Alan Post <address@hidden> writes:

 >>>> I'm not sure I followed you here. What's chicken's equivalent of
 >>>> SIG_IGN?

 >>> (set-signal-handler! signal/pipe #f)

 >> Come to think of it, there's no way to set SIG_DFL.  What about
 >> adding (set-default-signal-handler! signum) or changing the
 >> signature of set-signal-handler! to accept a keyword (#:default,
 >> #:ignore).

 > I like the idea of #:default and #:ignore keywords to
 > set-singnal-handler! over creating a new routine, though both suffer
 > from the following "problem": In C, you can assign to default signal
 > handler to the same type of variable as your own signal handler,
 > meaning you can store the default signal handler away and treat it
 > just like one of your own, toggling back and forth between it using
 > the same routine, |signal|.

 > You couldn't do that with either of these suggestions.

        Why not to use #t for the default handler then?





reply via email to

[Prev in Thread] Current Thread [Next in Thread]