in reply to Re: Allowing user to abort waitpid
in thread Allowing user to abort waitpid

So armed with that information, change the sleep to  system $^X, '-e', 'sleep 9';