in reply to Re: open (to read) and kill a pipe to a pipe
in thread open (to read) and kill a pipe to a pipe

Thanks Your Mother!
kill 9, -$pid; # didn't work # But... kill -9, $pid # WORKS !!!

From perldoc on kill:
if SIGNAL is negative, it kills process groups instead of processes. That means you usually want to use positive not negative signals.

Replies are listed 'Best First'.
Re^3: open (to read) and kill a pipe to a pipe
by ikegami (Patriarch) on Aug 26, 2010 at 22:51 UTC
    That's interesting since Windows doesn't have process groups. I wonder what it actually does ( when asked to kill a process group ).

      See kill_process_tree_toolhelp() in win32.c

      Corion recently told me that "under the Windows fork emulation, emulated forked children get negative PIDs". I don't know where this is documented but I believe him.

        That's true, but I don't see how it's relevant. He's passing a negative signal.