Loading ...
Sorry, an error occurred while loading the content.

RE: [PBML] Signal.

Expand Messages
  • Janarthanan, Prassana
    Sorry I din give my piece of code.. For capturing INT Cnt-c key sequnce. sub INT_handler { # close all files. # send error message to log file. exit(0); }
    Message 1 of 1 , Sep 2, 2003
    • 0 Attachment
      Sorry I din give my piece of code..

      For capturing INT Cnt-c key sequnce.
      sub INT_handler {

      # close all files.

      # send error message to log file.

      exit(0);

      }


      $SIG{'INT'} = 'INT_handler';
      --------------

      If I want to have a default handler for all such signals, how should I
      proceed. I don't want to write handler for each signals like ABRT2, ILL2 etc
      ...

      -Prassana




      -----Original Message-----
      From: Janarthanan, Prassana
      Sent: Tuesday, September 02, 2003 4:49 PM
      To: 'perl-beginner@yahoogroups.com'
      Subject: [PBML] Signal.


      Hi all,

      I have a good Q on SIG.

      I want to capture all the Signals and call my own function which would log
      with a message in to a file. I would do something like this for capturing
      INT.



      Unsubscribing info is here:
      http://help.yahoo.com/help/us/groups/groups-32.html

      Your use of Yahoo! Groups is subject to http://docs.yahoo.com/info/terms/
    Your message has been successfully submitted and would be delivered to recipients shortly.