Updatedmy $pid; my $enough = 120; if ( $pid = fork ) { # parent sleep $enough; unless ( system( "ps -p $pid >/dev/null" ) ) { # 0 exit code means + found warn "feeling filicidal (plus item description)\n"; system "kill -9 $pid >/dev/null 2>&1"; } } else { # child ... install item ... exit; }
One world, one people
In reply to Re: Dont wait too long for an operation
by anonymized user 468275
in thread Dont wait too long for an operation
by shayak
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |