Advertisement
Guest User

Process.kill()

a guest
Aug 18th, 2016
115
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.17 KB | None | 0 0
  1. Process.kill(0, PID)
  2. . . .
  3. rescue Errno::ESERCH
  4. #continue with the code
  5. rescue Errno::EPERM
  6. puts "Process(#{PID}) already running but it is owned by " USERID and GROUPID
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement