Find the answer to your Linux question:
Results 1 to 2 of 2
Parent send SIGKILL to the child process and process still cannot be killed. How can i debug the reason for child not being killed?...
  1. #1
    Just Joined!
    Join Date
    Jul 2008
    Posts
    22

    Child process cannot be killed using SIGKILL

    Parent send SIGKILL to the child process and process still cannot be killed.

    How can i debug the reason for child not being killed?

  2. #2
    Linux Engineer wje_lf's Avatar
    Join Date
    Sep 2007
    Location
    Mariposa
    Posts
    1,192
    How can i debug the reason for child not being killed?
    First, you can do all the usual things for determining what's going on in the parent process: that it's actually getting to the kill() call, that the child PID is accurate, that the signal is accurate, and so on. Then find out whether the parent process is actually returning from the kill() call. If it is, what is the returned value from the kill() call? If it's -1, what's the value of errno?

    And if you get a zero return from kill(), does the child process then turn into a zombie process? And is the parent process doing a wait() or waitpid() to harvest that zombie process?
    --
    Bill

    Old age and treachery will overcome youth and skill.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
...