Usually waitpid is a blocking call which returns when a child process exits: #!/usr/bin/perl my $pid = fork; if ($pid == 0) { sleep 1; exit; } ...
確定! 回上一頁