Subject: | is_pid_running() could check /proc if available |
Stolen from GWADEJ :)
sub is_pid_running
...
# even if we are superuser ...
# If the proc filesystem is available, it's a good test.
return ( -r "/proc/$pid" && $pid ) if -e "/proc/$$" && -r "/proc/$$";
...