in reply to 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.