[BusyBox 0001464]: [httpd] Hup signal don't works

bugs at busybox.net bugs at busybox.net
Sun Aug 26 18:05:54 UTC 2007


A NOTE has been added to this issue. 
====================================================================== 
http://busybox.net/bugs/view.php?id=1464 
====================================================================== 
Reported By:                lvalter
Assigned To:                BusyBox
====================================================================== 
Project:                    BusyBox
Issue ID:                   1464
Category:                   Networking Support
Reproducibility:            always
Severity:                   minor
Priority:                   normal
Status:                     assigned
====================================================================== 
Date Submitted:             08-14-2007 15:59 PDT
Last Modified:              08-26-2007 11:05 PDT
====================================================================== 
Summary:                    [httpd] Hup signal don't works
Description: 
Busybox 1.6.1
When a send a kill -1 <pid httpd>, my server crack.
The HUP option on compilation is ON.

The HUP signal specification dont works.
====================================================================== 

---------------------------------------------------------------------- 
 vda - 08-26-07 11:05  
---------------------------------------------------------------------- 
Works for me:

# strace -tt busybox httpd -f -vvv -p 8888
...
18:39:03.392960 listen(3, 9)            = 0
18:39:03.393030 open("/etc/httpd.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
18:39:03.393068 open("httpd.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
18:39:03.393105 rt_sigaction(SIGHUP, {0x808a895, [], SA_RESTART}, NULL, 8)
= 0
18:39:03.393146 accept(3, 0xffffd45c, [28]) = ? ERESTARTSYS (To be
restarted)

(I execute "kill -HUP `pidof busybox`" on another console)

18:39:07.240546 --- SIGHUP (Hangup) @ 0 (0) ---
18:39:07.240677 open("/etc/httpd.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT
(No such file or directory)
18:39:07.240848 open("httpd.conf", O_RDONLY|O_LARGEFILE) = -1 ENOENT (No
such file or directory)
18:39:07.241021 rt_sigaction(SIGHUP, {0x808a895, [], SA_RESTART}, NULL, 8)
= 0
18:39:07.241174 sigreturn()             = ? (mask now [])
18:39:07.241332 accept(3,

What happens when you do the same? 

Issue History 
Date Modified   Username       Field                    Change               
====================================================================== 
08-14-07 15:59  lvalter        New Issue                                    
08-14-07 15:59  lvalter        Status                   new => assigned     
08-14-07 15:59  lvalter        Assigned To               => BusyBox         
08-26-07 11:05  vda            Note Added: 0002689                          
======================================================================




More information about the busybox-cvs mailing list