perennial 1.0.2 → 1.0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/perennial/daemon.rb +1 -1
- data/lib/perennial.rb +1 -1
- metadata +2 -2
data/lib/perennial/daemon.rb
CHANGED
@@ -67,7 +67,7 @@ module Perennial
|
|
67
67
|
# the double fork approach. Also, changes process file
|
68
68
|
# mask to 000 and reopens STDIN / OUT to /dev/null
|
69
69
|
def daemonize!(should_exit = true)
|
70
|
-
if detached_fork { exit if should_exit }
|
70
|
+
if detached_fork { exit if should_exit }.nil?
|
71
71
|
Process.setsid
|
72
72
|
detached_fork { exit }
|
73
73
|
reinitialize_stdio
|
data/lib/perennial.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: perennial
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.2
|
4
|
+
version: 1.0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Darcy Laycock
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-22 00:00:00 +08:00
|
13
13
|
default_executable: perennial
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|