About SIGFPE

P

pavunkumar

Dear Friends

Can you any one explain about SIGFPE signal ,
because whenever it is generating , it is coming again and again. But.
some of the signal if we trap , that will get over . But In this is
case not like that why ?

Thanks
 
E

Eric Sosman

pavunkumar said:
Dear Friends

Can you any one explain about SIGFPE signal ,
because whenever it is generating , it is coming again and again. But.
some of the signal if we trap , that will get over . But In this is
case not like that why ?

Because that's how your system behaves. The C language
does not specify what happens after a computational signal
is handled:

7.14.1.1p3: [...] If and when the function returns,
if the value of sig is SIGFPE, SIGILL, SIGSEGV, or
any other implementation-defined value corresponding
to a computational exception, the behavior is undefined
[...]

.... which means that after your SIGFPE your system can do
pretty much anything it likes, as far as C is concerned.
Your system's own documentation may say more about what it
does after a SIGFPE.
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,432
Messages
2,571,680
Members
48,796
Latest member
Greg L.

Latest Threads

Top