Skip Menu |

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

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

People
Owner: Nobody in particular
Requestors: KRN [...] cpan.org
Cc:
AdminCc:

Bug Information
Severity: Normal
Broken in: 0.97
Fixed in: (no value)



Subject: Check before forking tests for defined not true-ness
Line 291 of v0.97 Net/Server.pm: if( $prop->{setsid} || defined($prop->{background}) ){ Why use defined() here, and not just test for true-ness? This means that it is now impossible to turn off "background" if a default_values() hook sets it to 1, since _initialize will overwrite your parameters if they have an undef value. An example of this problem is XML::Compile::SOAP::Daemon, which is now impossible to run in the foreground. Lots of thanks if this can be fixed!
The code is updated as of the just released version 2.000 Thank you for the report.