Bug 679989 - bind dies on USR1 signal (SIGUSR1)
Summary: bind dies on USR1 signal (SIGUSR1)
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: bind
Version: 14
Hardware: x86_64
OS: Linux
unspecified
unspecified
Target Milestone: ---
Assignee: Adam Tkac
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-02-24 02:33 UTC by vince
Modified: 2013-04-30 23:48 UTC (History)
3 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-02-24 13:24:34 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)

Description vince 2011-02-24 02:33:34 UTC
Description of problem:
Sending bind a USR1 or USR2 signal (to increase/decrease debug output) kills it instead

Version-Release number of selected component (if applicable):
9.7.2-5.P3

How reproducible:
every time

Steps to Reproduce:
1. Run bind
2. killall -USR1 bind
  
Actual results:
bind dies

Expected results:
bind should increase debug level by +1

Additional info:

Comment 1 Adam Tkac 2011-02-24 09:53:35 UTC
This doesn't seem like a bug for me. Per named(8) manual page:

...
SIGNALS
       In routine operation, signals should not be used to control the nameserver; rndc should be used instead.

       SIGHUP
           Force a reload of the server.

       SIGINT, SIGTERM
           Shut down the server.

       The result of sending any other signals to the server is undefined.
...

May I ask you where did you find SIGUSR1/SIGUSR2 signals should increase/decrease debug output? `rndc trace` should be used instead.

Comment 2 vince 2011-02-24 12:17:37 UTC
Shoot, I'm showing my age here. Older named versions used SIGUSR1/SIGUSR2 to do the rndc trace function.

Should the server die when receiving any other signal than the three defined? Seems like it should just ignore them instead.

So, yeah, not a bug in that it's not supposed to do a debug change, but maybe it should ignore the signal altogether instead of die.

Comment 3 Adam Tkac 2011-02-24 13:24:34 UTC
(In reply to comment #2)
> Shoot, I'm showing my age here. Older named versions used SIGUSR1/SIGUSR2 to do
> the rndc trace function.
> 
> Should the server die when receiving any other signal than the three defined?
> Seems like it should just ignore them instead.

Well, other signals use their default signal handlers. SIGUSR* default handler is to terminate the running process (check `man 7 signal`) so they do what is expected.

Closing as notabug.


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