Thread Neuen Prozess starten (6 answers)
Opened by Kean at 2011-05-17 08:36

rosti
 2011-05-17 08:40
#148706 #148706
User since
2011-03-19
3150 articles
BenutzerIn
[Homepage]
user image
hi,

bitte teste das mal:

Code (perl): (dl )
1
2
3
4
5
6
7
8
9
10
use POSIX qw/setsid/;

my $pid = fork();
die $! unless defined $pid;
if($pid == 0) {
  die $! unless setsid();
}
else {
  exit();
}

View full thread Neuen Prozess starten