kill & stop signals

This is a discussion on kill & stop signals within the C Programming forums, part of the General Programming Boards category; Is there a way that we could catch those two signals using standard signal function. I been trying to do ...

  1. #1
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682

    kill & stop signals

    Is there a way that we could catch those two signals using standard signal function. I been trying to do that, but it doesn't seems to catch them. Perhaps i been researching about it on the Internet, and everyone seems to say that it cant be caught. Any idea or hints on how we could catch those two signals.

    Thank you

    ssharish

  2. #2
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    Quote Originally Posted by man signal
    ... The signals SIGKILL and SIGSTOP cannot be caught, blocked, or ignored. ...
    see reference here

  3. #3
    Registered User ssharish2005's Avatar
    Join Date
    Sep 2005
    Location
    Cambridge, UK
    Posts
    1,682
    Quote Originally Posted by nadroj View Post
    see reference here
    Yeah thought it not possible to catch those signals. At same time i thought that i will post this here and see if anyone else any idea or any comments. But anyway it seems that its not possible now.

    Thanks a lot

    ssharish

  4. #4
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355
    Quote Originally Posted by nadroj View Post
    see reference here
    A very informative reference indeed...
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

  5. #5
    Registered User
    Join Date
    Oct 2006
    Location
    Canada
    Posts
    1,243
    ya my understanding is that only the list of other signals in the list presented in 'man signal' can be caught/handled.

  6. #6
    Registered User
    Join Date
    Jan 2007
    Posts
    330
    Quote Originally Posted by xuftugulus View Post
    A very informative reference indeed...
    The author was probably drunk!

  7. #7
    uint64_t...think positive xuftugulus's Avatar
    Join Date
    Feb 2008
    Location
    Pacem
    Posts
    355

    Wink

    Quote Originally Posted by KIBO View Post
    The author was probably drunk!
    Is there ever a good time not to be
    Code:
    ...
        goto johny_walker_red_label;
    johny_walker_blue_label: exit(-149$);
    johny_walker_red_label : exit( -22$);
    A typical example of ...cheap programming practices.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. fscanf %s or %d integer input space char stop question...
    By transgalactic2 in forum C Programming
    Replies: 5
    Last Post: 04-14-2009, 10:44 AM
  2. Error stop Http Listener
    By George2 in forum C# Programming
    Replies: 1
    Last Post: 06-04-2008, 02:14 AM
  3. How to kill a dragon with various programming languages
    By g4j31a5 in forum A Brief History of Cprogramming.com
    Replies: 7
    Last Post: 10-01-2007, 12:13 PM
  4. when a while loop will stop ?
    By blue_gene in forum C Programming
    Replies: 13
    Last Post: 04-20-2004, 03:45 PM

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