On Wed, Apr 16, 2008 at 12:13:00AM -0600, Jim Ursetto wrote: > On 4/16/08, Jim Ursetto <[EMAIL PROTECTED]> wrote: > > On 4/15/08, Lui Fungsin <[EMAIL PROTECTED]> wrote: > > > 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. -Alan -- A: Because it messes up the order in which people normally read text. Q: Why is top-posting such a bad thing? A: Top-posting. Q: What is the most annoying thing on usenet and in e-mail? _______________________________________________ Chicken-users mailing list [email protected] http://lists.nongnu.org/mailman/listinfo/chicken-users
