svutil 0.0.11 → 0.0.12
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/svutil.rb +1 -1
- data/lib/svutil/process_manager.rb +3 -1
- metadata +3 -3
data/lib/svutil.rb
CHANGED
@@ -4,7 +4,9 @@ module SVUtil
|
|
4
4
|
# TODO: Add ability for users to specify these signals
|
5
5
|
Signal.trap("INT") { shutdown('Interupted', 1) }
|
6
6
|
Signal.trap("TERM") { shutdown('Terminated', 2) }
|
7
|
-
|
7
|
+
unless RUBY_PLATFORM =~ /(win|w)32$/
|
8
|
+
Signal.trap("PIPE") { shutdown('Broken Pipe', 4) }
|
9
|
+
end
|
8
10
|
if running?
|
9
11
|
STDERR.puts "There is already a '#{$0}' process running"
|
10
12
|
exit 1
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 0
|
8
|
-
-
|
9
|
-
version: 0.0.
|
8
|
+
- 12
|
9
|
+
version: 0.0.12
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Daniel Draper
|
@@ -14,7 +14,7 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-10-31 00:00:00 +10:30
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|