diff --git a/lib/Plack/Server/Shotgun.pm b/lib/Plack/Server/Shotgun.pm index 3e3dbff49..3407c4e92 100644 --- a/lib/Plack/Server/Shotgun.pm +++ b/lib/Plack/Server/Shotgun.pm @@ -23,7 +23,7 @@ sub _app { pipe my $read, my $write; my $pid = fork; - if ($pid > 0) { + if ($pid) { # parent close $write; my $res = Storable::thaw(join '', <$read>);