in reply to waitpid(-1, WNOHANG) is hanging

Always use use strict; use warnings;. It catches your error.

Replies are listed 'Best First'.
Re^2: waitpid(-1, WNOHANG) is hanging
by templedf (Initiate) on Aug 11, 2015 at 22:32 UTC

    Bingo. I was missing the 'use POSIX ":sys_wait_h";'