l i n u x - u s e r s - g r o u p - o f - d a v i s
Next Meeting:
July 7: Social gathering
Next Installfest:
Latest News:
Jun. 14: June LUGOD meeting cancelled
Page last updated:
2002 Mar 15 11:45

The following is an archive of a post made to our 'vox-tech mailing list' by one of its subscribers.

Report this post as spam:

(Enter your email address)
Re: [vox-tech] help with signals and C
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [vox-tech] help with signals and C

begin Micah Cowan <micah@cowanbox.com> 
> On Wed, 2002-03-13 at 10:52, Peter Jay Salzman wrote:
> Trying to use a sighandler_t or, especially, __sighandler_t, is
> ill-advised....  (and completely unlikely to change code behavior).
i was trying to look at the return value of signal() in order to figure
out why the code wasn't working.  a very un-ill-advised course of
action.  :)

> As to why the code is failing....  as far as ANSI C is concerned, an
> implementation doesn't have to signal at all, regardless of what kind of
> floating point exception occurs.

i don't doubt you.

but having a signal called "floating point exception" and not sending it
for any type of error except an integer divide by zero sounds like an
implementation written by bozo the clown with clarabell smoking hobbit
weed behind the big top.

> I don't know enough about the
> specifics of Linux on Intel to tell you whether some circumstances might
> actually cause the signal to be generated, but I believe someone here
> mentioned trying integer zero-divide (SIGFPE doesn't have to be floating
> point, really).
according to: man 2 signal, jeff's link, and mark's last email this is
absolutely correct.   :-)

vox-tech mailing list

LUGOD Group on LinkedIn
Sign up for LUGOD event announcements
Your email address:
LUGOD Group on Facebook
'Like' LUGOD on Facebook:

Hosting provided by:
Sunset Systems
Sunset Systems offers preconfigured Linux systems, remote system administration and custom software development.

LUGOD: Linux Users' Group of Davis
PO Box 2082, Davis, CA 95617
Contact Us

LUGOD is a 501(c)7 non-profit organization
based in Davis, California
and serving the Sacramento area.
"Linux" is a trademark of Linus Torvalds.

Sponsored in part by:
EDGE Tech Corp.
For donating some give-aways for our meetings.