Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: print on reboot or process shutdown

by whereiskurt (Friar)
on Jul 29, 2008 at 21:43 UTC ( [id://700930]=note: print w/replies, xml ) Need Help??


in reply to print on reboot or process shutdown

Hello!

Different OSes are going have slightly different signals. I found this for windows:

  • ABRT2 -- This signal means that another process is trying to abort your process.
  • BREAK2 -- This signal indicates that a Ctrl+Break key sequence was pressed under Windows.
  • TERM2 -- This signal means that another process is trying to terminate your process.
  • SEGV2 -- This signal indicates that a segment violation has taken place.
  • FPE2 -- This signal catches floating point exceptions.
  • ILL2 -- This signal indicates that an illegal instruction has been attempted.
  • INT2 -- This signal indicates that a Ctrl+C key sequence was pressed under Windows.
  • sub kill_handler { open(my $theend, ">", ABORTED"); close($theend); } $SIG{'ABRT2'} = 'kill_handler'; $SIG{'ILL2'} = 'kill_handler';

    Kurt

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://700930]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-05-25 02:56 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found