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.


With the rise and rise of 'Social' network sites: 'Computers are making people easier to use everyday'
Examine what is said, not who speaks -- Silence betokens consent -- Love the truth but pardon error.
"Science is about questioning the status quo. Questioning authority". I knew I was on the right track :)
In the absence of evidence, opinion is indistinguishable from prejudice.

Replies are listed 'Best First'.
Re^2: Allowing user to abort waitpid
by lab007 (Novice) on Mar 07, 2016 at 16:18 UTC
    That works great! Thanks!