Note: This is a beta release of Red Hat Bugzilla 5.0. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Also email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback here.

Bug 1155

Summary: Strange timing in killproc()
Product: [Retired] Red Hat Linux Reporter: jacobn+redhat
Component: initscriptsAssignee: David Lawrence <dkl>
Severity: medium Docs Contact:
Priority: medium    
Version: 5.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 1999-02-17 17:15:51 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:

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

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.