- $SIG{CHLD} = sub {
- my $child = waitpid -1, POSIX::WNOHANG;
- @pids = grep { $_ != $child } @pids;
- return unless @pids == 0;
- print STDERR "All X server processes died.\n";
- print STDERR "Use ./complete-run.pl --parallel 1 --keep-xserver-output\n";
- exit 1;
- };
-