[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....
thanks,
Sebastian
>
> Best regards,
>
> --Robert
>
- no thread-safe +initialize in old gnustep runtime?, Sebastian Reitenbach, 2011/06/06
- Re: no thread-safe +initialize in old gnustep runtime?, Nicola Pero, 2011/06/08
- Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?, Sebastian Reitenbach, 2011/06/13
- Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?, David Chisnall, 2011/06/13
- Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?, Sebastian Reitenbach, 2011/06/13
- Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?, Sebastian Reitenbach, 2011/06/14
- Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?, David Chisnall, 2011/06/14
- Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?, Richard Frith-Macdonald, 2011/06/14
- Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?, Richard Frith-Macdonald, 2011/06/14
- Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?, Riccardo Mottola, 2011/06/14
- Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?, Sebastian Reitenbach, 2011/06/15
- Re: Problem with exception handling: WAS: no thread-safe +initialize in old gnustep runtime?, Riccardo Mottola, 2011/06/15