in reply to Allowing user to abort waitpid
Instead of using alarm to interrupt the waitpid once a second; use the non-blocking version of waitpid (with WNOHANG) and ReadKey() or ReadLine() from Term::ReadKey with a timeout to check for user input.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Allowing user to abort waitpid
by lab007 (Novice) on Mar 07, 2016 at 16:18 UTC |