lib/cukeforker/worker.rb in cukeforker-0.2.3 vs lib/cukeforker/worker.rb in cukeforker-0.2.4
- old
+ new
@@ -31,9 +31,12 @@
status.nil? || status.exitstatus != 0
end
def start
@pid = Process.fork {
+ # make sure all workers die if cukeforker is killed
+ Process.setpgid 0, 0
+
changed
notify_observers :on_worker_forked, self
execute_cucumber
}
end