in reply to Re: Allowing user to abort waitpidin thread Allowing user to abort waitpid
So armed with that information, change the sleep to system $^X, '-e', 'sleep 9';