in reply to Detecting stale pid file under *nix

IIRC, Proc::PID::File has a verify option to do stale PID checking. My old module (now removed from CPAN, due to Proc::PID::File already existing) also did stale PID checking.
  • Comment on Re: Detecting stale pid file under *nix

Replies are listed 'Best First'.
Re^2: Detecting stale pid file under *nix
by Dallaylaen (Chaplain) on Oct 25, 2016 at 08:19 UTC

    Thanks! And it does so by calling ps via shell. At least that is portable.

    I wonder if there is a standardized /proc layout or maybe a Perl module for fetching process properties...

    UPDATE I've found Proc::ProcessTable, but it does a full table scan, not just one process.