in reply to Allowing user to abort waitpid

Hello lab007,

Have you taken into account this caveat in the documentation for Perl’s built-in alarm function?

It is usually a mistake to intermix alarm and sleep calls, because sleep may be internally implemented on your system with alarm.

Hope that helps,

Athanasius <°(((><contra mundum Iustus alius egestas vitae, eros Piratica,

Replies are listed 'Best First'.
Re^2: Allowing user to abort waitpid
by Anonymous Monk on Mar 07, 2016 at 07:10 UTC

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

Re^2: Allowing user to abort waitpid
by lab007 (Novice) on Mar 07, 2016 at 16:17 UTC
    Just an unfortunate choice for my sample - I am not actually using sleep there in the production code.