Skip to content

Latest commit

 

History

History
22 lines (13 loc) · 503 Bytes

2014-03-07.md

File metadata and controls

22 lines (13 loc) · 503 Bytes

Kashyap

How to find the source of where a Module was defined if there are no methods defined inside it but it was included somwhere? Interesting question.

http://stackoverflow.com/questions/22239501/how-to-find-a-modules-location

Hemant

Checking if a process is really running programmatically.

One can use ps aux or other stuff, what I have found is following works quite well:

begin
  Process.kill(0, pid)
rescue Errno::ESRCH
  # process is not running
end