in reply to Re: Detecting stale pid file under *nix
in thread Detecting stale pid file under *nix

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.

  • Comment on Re^2: Detecting stale pid file under *nix