POSIX::setsid is not exported per default

master
Joey Hess 2008-05-06 18:41:56 -04:00
parent 880d098dab
commit 457de90f5f
1 changed files with 1 additions and 1 deletions

View File

@ -505,7 +505,7 @@ sub pingurl (@) { #{{{
defined(my $pid = fork) or error("Can't fork: $!");
return if $pid;
chdir '/';
setsid() or error("Can't start a new session: $!");
POSIX::setsid() or error("Can't start a new session: $!");
open STDIN, '/dev/null';
open STDOUT, '>/dev/null';
open STDERR, '>&STDOUT' or error("Can't dup stdout: $!");