Skip Menu |

This queue is for tickets about the Net-Server CPAN distribution.

Report information
The Basics
Id: 20024
Status: resolved
Priority: 0/
Queue: Net-Server

People
Owner: Nobody in particular
Requestors: andreas [...] kippnick.de
Cc:
AdminCc:

Bug Information
Severity: Critical
Broken in: 0.93
Fixed in: (no value)



Subject: Wrong sighup handling - Warning perl newbie
Hi, I try to use Net::Server for a radius tool server. I use the daemonize functionality and the prefork server extension. I use the default config for prefork servers (one parent ;-)) and 5 clinets). The exapmle of an udpserver works fine and the combination of the radius example (http://search.cpan.org/src/LUISMUNOZ/Net-Radius-1.44/examples/example-unix.pl) and the udpserver works fine as an radius daemon. But when I try to send a SIGHUP signal to the parent proccess and when watching the proccess table i figure out that the 5 clinets are defunct and 5 new clients are started. After a second SIGHUP all clienst die and now the suggested 5 working clients start up. Every following SIGHUP has the suggested result. Regards Andreas Kippnick Net::Server v 0.93 This is perl, v5.8.6 built for i586-linux-thread-multi kernelversion 2.6 Suse Linux 9.3
Not sure why some of your processes were defunct. There is a new flag that can be passed to Net::Server (as of 0.94). It is the "leave_children_open_on_hup" flag. If set, children that are already open and talking on a connection will be left open until they are done with that particular request. This flag is not on by default - meaning that on the hup - the server will try and kill current child process are restart with new ones. The new flag is available in the 0.94 release.