Bug 30640

Summary: apmd does not terminate properly on SIGTERM
Product: Base System Reporter: Ralf Meyer <meyerr>
Component: binAssignee: Murray Stokely <murray>
Status: Closed FIXED    
Severity: Affects Only Me    
Priority: Normal    
Version: Unspecified   
Hardware: Any   
OS: Any   
Attachments:
Description Flags
file.diff none

Description Ralf Meyer 2001-09-18 04:50:00 UTC
Despite of writing "going down on signal 15" apmd does not terminate when receiving 
SIGTERM.
IMHO the problem is caused by the fact that sig_proc() returns 1 if a SIGTERM was 
received. However, event_loop() terminates apmd only if sig_proc returns a negative
value.

How-To-Repeat: kill -15 `cat /var/log/apmd.pid`
Comment 1 Murray Stokely freebsd_committer freebsd_triage 2003-05-11 21:56:02 UTC
Responsible Changed
From-To: freebsd-bugs->murray

I'll take a look at this.
Comment 2 Matthew N. Dodd freebsd_committer freebsd_triage 2003-06-22 07:01:21 UTC
State Changed
From-To: open->closed

Committed.