Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- 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
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement