Process

Public Class Methods

running?(pid) click to toggle source

Returns true the process identied by pid is running.

    # File lib/thin/daemonizing.rb, line 6
 6:   def running?(pid)
 7:     Process.getpgid(pid) != 1
 8:   rescue Errno::EPERM
 9:     true
10:   rescue Errno::ESRCH
11:     false
12:   end

Private Instance Methods

running?(pid) click to toggle source

Returns true the process identied by pid is running.

    # File lib/thin/daemonizing.rb, line 6
 6:   def running?(pid)
 7:     Process.getpgid(pid) != 1
 8:   rescue Errno::EPERM
 9:     true
10:   rescue Errno::ESRCH
11:     false
12:   end

Disabled; run with --debug to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.