$pid = fork; if ($pid == 0) { exec hintergrundprozess; } .... kill 9 => $pid;