[Rt-commit] r5225 - in HTTP-Server-Simple: .
jesse at bestpractical.com
jesse at bestpractical.com
Mon May 15 11:24:48 EDT 2006
Author: jesse
Date: Mon May 15 11:24:46 2006
New Revision: 5225
Modified:
HTTP-Server-Simple/ (props changed)
HTTP-Server-Simple/lib/HTTP/Server/Simple.pm
Log:
r13806 at hualien: jesse | 2006-05-15 11:23:38 -0400
* require POSIX only if we need it, rather than "use" it all the time
[cpan #17533] - Brad Bowman
Modified: HTTP-Server-Simple/lib/HTTP/Server/Simple.pm
==============================================================================
--- HTTP-Server-Simple/lib/HTTP/Server/Simple.pm (original)
+++ HTTP-Server-Simple/lib/HTTP/Server/Simple.pm Mon May 15 11:24:46 2006
@@ -161,9 +161,9 @@
my $child = fork;
die "Can't fork: $!" unless defined($child);
return $child if $child;
- use POSIX;
if ( $^O !~ /MSWin32/ ) {
+ require POSIX;
POSIX::setsid()
or die "Can't start a new session: $!";
}
More information about the Rt-commit
mailing list