-
-
Save anonymous/7aa3add3e6434d072fa31615106e3633 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Process.kill(0, PID) | |
. . . | |
rescue Errno::ESERCH | |
#continue with the code | |
rescue Errno::EPERM | |
puts "Process(#{PID}) already running but it is owned by " USERID and GROUPID |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment