diff mbox

[Branch,~linaro-validation/lava-scheduler/trunk] Rev 73: run lava-scheduler-monitor with the setsid program, so that the

Message ID 20110822054113.4039.36269.launchpad@ackee.canonical.com
State Accepted
Headers show

Commit Message

Michael-Doyle Hudson Aug. 22, 2011, 5:41 a.m. UTC
------------------------------------------------------------
revno: 73
committer: Michael-Doyle Hudson <michael.hudson@linaro.org>
branch nick: trunk
timestamp: Mon 2011-08-22 17:39:45 +1200
message:
  run lava-scheduler-monitor with the setsid program, so that the
  lava-scheduler-monitor runs in its own process group and is not killed by
  upstart when the lava-scheduler itself is restarted
modified:
  lava_scheduler_daemon/board.py


--
lp:lava-scheduler
https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk

You are subscribed to branch lp:lava-scheduler.
To unsubscribe from this branch go to https://code.launchpad.net/~linaro-validation/lava-scheduler/trunk/+edit-subscription
diff mbox

Patch

=== modified file 'lava_scheduler_daemon/board.py'
--- lava_scheduler_daemon/board.py	2011-08-19 03:59:00 +0000
+++ lava_scheduler_daemon/board.py	2011-08-22 05:39:45 +0000
@@ -140,9 +140,9 @@ 
         with os.fdopen(fd, 'wb') as f:
             json.dump(json_data, f)
         self.reactor.spawnProcess(
-            SimplePP(d), 'lava-scheduler-monitor', childFDs={0:0, 1:1, 2:2},
+            SimplePP(d), 'setsid', childFDs={0:0, 1:1, 2:2},
             env=None, args=[
-                'lava-scheduler-monitor', self.dispatcher,
+                'setsid', 'lava-scheduler-monitor', self.dispatcher,
                 str(self.board_name), self._json_file])
         d.addBoth(self._exited)
         return d