Signal handling

This is a discussion on Signal handling within the Linux Programming forums, part of the Platform Specific Boards category; Is there any way to ignore signal 9 and 17 (SIGTERM and SIGSTOP) in a program? If not is it ...

  1. #1
    Registered User quagsire's Avatar
    Join Date
    Jun 2002
    Posts
    60

    Signal handling

    Is there any way to ignore signal 9 and 17 (SIGTERM and SIGSTOP) in a program?

    If not is it possible for the program to log this signals before exiting ?

    All help appreciated.

  2. #2
    Im back! shaik786's Avatar
    Join Date
    Jun 2002
    Location
    Bangalore, India
    Posts
    345
    SIGSTOP and SIGKILL are two signals that can not be caught/ignored by applications. The rest can be handled, including SIGTERM.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. signal handling and exception handling
    By lehe in forum C++ Programming
    Replies: 2
    Last Post: 06-15-2009, 11:01 PM
  2. Signal and exception handling
    By nts in forum C++ Programming
    Replies: 23
    Last Post: 11-15-2007, 02:36 PM
  3. Signal Handling
    By DarrenY in forum C Programming
    Replies: 4
    Last Post: 06-04-2006, 12:30 PM
  4. Signal Handling - Are they part of ANSI C?
    By Stanley S in forum C Programming
    Replies: 3
    Last Post: 12-21-2005, 07:49 AM
  5. signal handling
    By trekker in forum C Programming
    Replies: 2
    Last Post: 07-05-2002, 03:52 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21