>>>>> Alan Post <[EMAIL PROTECTED]> 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?



_______________________________________________
Chicken-users mailing list
[email protected]
http://lists.nongnu.org/mailman/listinfo/chicken-users

Reply via email to