[Top][All Lists]

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

Re: Problem with exception handling: WAS: no thread-safe +initialize in

From: Sebastian Reitenbach
Subject: Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?
Date: Mon, 13 Jun 2011 14:26:48 +0200
User-agent: SOGoMail 1.3.7

On Monday, June 13, 2011 14:12 CEST, Robert Slover <rjslover@me.com> wrote: 
> Sebastian,
> I think you're misreading the BSD prototype to signal().  It is easy to do; 
> the typedef in the Linux one just makes it easier to comprehend at first 
> glance, but is functionally equivalent.
> The signal() prototype declares that it returns a pointer to a function 
> returning void which takes a single integer argument.  If you scroll down in 
> the BSD manpage and read the 'RETURN VALUES' section, you will see that it 
> specifically declares that it returns the previous signal handler.  The 
> Solaris manpage says "previous disposition".  At any rate, I think the 
> original code there was correct, and your substitute for it, incorrect (well, 
> return value also allows for SIG_ERR to be returned and errno to be set).

oops, yes, rereading the BSD manual page, you are right, and my changes were 
plain wrong. 
Now, going back to 0, thinking again....


> Best regards,
> --Robert

reply via email to

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