in reply to Breakpoint on waitpid()?

You can globally replace waitpid() with a Perl wrapper and then put a breakpoint in that wrapper. Something like:

BEGIN { *CORE::GLOBAL::waitpid = sub($$) { CORE::waitpid( $_[0], $_[1] + ) }; }

Update: Added the 'prototype' from prototype('CORE::waitpid') so parsing of code isn't changed by this override.

- tye        

Replies are listed 'Best First'.
Re^2: Breakpoint on waitpid()? (override)
by slagperl (Initiate) on Nov 07, 2014 at 17:44 UTC
    Thanks. The BEGIN did the trick and helped find the bug which not surprisingly turned out to be in my code.