tasks 1.2 → 1.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/tasks.rb +2 -1
  2. metadata +2 -2
@@ -25,12 +25,13 @@ module Tasks
25
25
  a.pid
26
26
  end
27
27
 
28
- def love_pact(master, slave, interval = 2)
28
+ def love_pact(master, slave, kill_childrenp = true, interval = 2)
29
29
  loop {
30
30
  Process.kill 0, master
31
31
  sleep interval
32
32
  }
33
33
  rescue Errno::ESRCH
34
+ kill_children(slave) if kill_childrenp
34
35
  Process.kill "KILL", slave
35
36
  end
36
37
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: "1.2"
4
+ version: "1.3"
5
5
  platform: ruby
6
6
  authors:
7
7
  - ujihisa
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2010-01-01 00:00:00 -08:00
12
+ date: 2010-02-09 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15