daemons 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/README +1 -1
- data/Rakefile +3 -1
- data/Releases +7 -2
- data/lib/daemons.rb +1 -1
- data/lib/daemons/application.rb +3 -3
- metadata +3 -3
data/README
CHANGED
data/Rakefile
CHANGED
@@ -17,11 +17,13 @@ PKG_FILES = FileList[
|
|
17
17
|
"setup.rb",
|
18
18
|
"lib/**/*.rb",
|
19
19
|
#"test/**/*",
|
20
|
-
"examples
|
20
|
+
"examples/**/*.rb"
|
21
21
|
]
|
22
22
|
#PKG_FILES.exclude(%r(^test/tmp/.+))
|
23
23
|
PKG_FILES.exclude(%r(\.pid$))
|
24
24
|
PKG_FILES.exclude(%r(\.log$))
|
25
|
+
PKG_FILES.exclude(%r(\.output$))
|
26
|
+
PKG_FILES.exclude(%r(\.txt$))
|
25
27
|
|
26
28
|
spec = Gem::Specification.new do |s|
|
27
29
|
s.name = PKG_NAME
|
data/Releases
CHANGED
@@ -1,10 +1,15 @@
|
|
1
1
|
= Daemons Release History
|
2
2
|
|
3
|
-
== Release 1.1.
|
3
|
+
== Release 1.1.3: April 14, 2011
|
4
|
+
|
5
|
+
* Fixed a bug in Application.stop: the cached pid number needs to
|
6
|
+
be used to check for the status of a killed process (thanks to Jimmy Sieben).
|
7
|
+
|
8
|
+
== Release 1.1.2: March 29, 2011
|
4
9
|
|
5
10
|
* Fixed gemspec to include all needed files.
|
6
11
|
|
7
|
-
== Release 1.1.1: March 29,
|
12
|
+
== Release 1.1.1: March 29, 2011
|
8
13
|
|
9
14
|
* Make the logging facilities work in :mode => :none (i.e. when calling
|
10
15
|
Daemons.daemonize) (thanks to the input from Peter Hegedus).
|
data/lib/daemons.rb
CHANGED
data/lib/daemons/application.rb
CHANGED
@@ -393,7 +393,7 @@ module Daemons
|
|
393
393
|
|
394
394
|
begin
|
395
395
|
Timeout::timeout(@force_kill_waittime) {
|
396
|
-
while
|
396
|
+
while Pid.running?(pid)
|
397
397
|
sleep(0.2)
|
398
398
|
end
|
399
399
|
}
|
@@ -408,7 +408,7 @@ module Daemons
|
|
408
408
|
|
409
409
|
begin
|
410
410
|
Timeout::timeout(20) {
|
411
|
-
while
|
411
|
+
while Pid.running?(pid)
|
412
412
|
sleep(1)
|
413
413
|
end
|
414
414
|
}
|
@@ -423,7 +423,7 @@ module Daemons
|
|
423
423
|
end
|
424
424
|
|
425
425
|
sleep(0.1)
|
426
|
-
unless
|
426
|
+
unless Pid.running?(pid)
|
427
427
|
# We try to remove the pid-files by ourselves, in case the application
|
428
428
|
# didn't clean it up.
|
429
429
|
begin; @pid.cleanup; rescue ::Exception; end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: daemons
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 1
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 1.1.
|
9
|
+
- 3
|
10
|
+
version: 1.1.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Thomas Uehlinger
|