Bug 1155 - Strange timing in killproc()
Summary: Strange timing in killproc()
Status: CLOSED CURRENTRELEASE
Alias: None
Product: Red Hat Linux
Classification: Retired
Component: initscripts
Version: 5.2
Hardware: All
OS: Linux
medium
medium
Target Milestone: ---
Assignee: David Lawrence
QA Contact:
URL:
Whiteboard:
Keywords:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 1999-02-13 22:40 UTC by jacobn+redhat
Modified: 2008-05-01 15:37 UTC (History)
0 users

(edit)
Clone Of:
(edit)
Last Closed: 1999-02-17 17:15:51 UTC


Attachments (Terms of Use)

Description jacobn+redhat 1999-02-13 22:40:00 UTC
Under RedHat 5.1 and 5.2 in the procedure killproc() (used
during shutdown) the following code appears:

  # TERM first, then KILL if not dead
  kill -TERM $pid
  usleep 100000
  if ps h $pid >/dev/null 2>&1 ; then
          sleep 3
          kill -KILL $pid
  fi

i.e., send TERM, see if it's gone away 100ms later, and if
not *wait another three seconds* then send KILL (AIUI). This
has been giving me 'kill: (nnn) - No such pid' errors during
shutdown (not surprisingly).

Comment 1 Bill Nottingham 1999-02-17 17:15:59 UTC
this is fixed in a later version of initscripts.


Note You need to log in before you can comment on or make changes to this bug.