chicken-users
[Top][All Lists]
Advanced

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

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


From: Alan Post
Subject: Re: [Chicken-users] Re: with-open-pipe to handle sigpipe
Date: Wed, 16 Apr 2008 12:47:01 -0600

On Wed, Apr 16, 2008 at 12:13:00AM -0600, Jim Ursetto wrote:
> On 4/16/08, Jim Ursetto <address@hidden> wrote:
> > On 4/15/08, Lui Fungsin <address@hidden> 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?




reply via email to

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