From patchwork Mon Aug 22 05:41:13 2011 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Michael-Doyle Hudson X-Patchwork-Id: 3590 Return-Path: X-Original-To: patchwork@peony.canonical.com Delivered-To: patchwork@peony.canonical.com Received: from fiordland.canonical.com (fiordland.canonical.com [91.189.94.145]) by peony.canonical.com (Postfix) with ESMTP id B516D23F4D for ; Mon, 22 Aug 2011 05:41:16 +0000 (UTC) Received: from mail-gy0-f180.google.com (mail-gy0-f180.google.com [209.85.160.180]) by fiordland.canonical.com (Postfix) with ESMTP id 7AF09A185E1 for ; Mon, 22 Aug 2011 05:41:16 +0000 (UTC) Received: by gyc15 with SMTP id 15so4873059gyc.11 for ; Sun, 21 Aug 2011 22:41:15 -0700 (PDT) Received: by 10.150.237.19 with SMTP id k19mr328504ybh.390.1313991675792; Sun, 21 Aug 2011 22:41:15 -0700 (PDT) X-Forwarded-To: linaro-patchwork@canonical.com X-Forwarded-For: patch@linaro.org linaro-patchwork@canonical.com Delivered-To: patches@linaro.org Received: by 10.150.157.17 with SMTP id f17cs183588ybe; Sun, 21 Aug 2011 22:41:15 -0700 (PDT) Received: by 10.216.135.208 with SMTP id u58mr1566332wei.110.1313991674165; Sun, 21 Aug 2011 22:41:14 -0700 (PDT) Received: from indium.canonical.com (indium.canonical.com [91.189.90.7]) by mx.google.com with ESMTPS id u49si14473695weq.103.2011.08.21.22.41.13 (version=TLSv1/SSLv3 cipher=OTHER); Sun, 21 Aug 2011 22:41:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) client-ip=91.189.90.7; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of bounces@canonical.com designates 91.189.90.7 as permitted sender) smtp.mail=bounces@canonical.com Received: from ackee.canonical.com ([91.189.89.26]) by indium.canonical.com with esmtp (Exim 4.71 #1 (Debian)) id 1QvNG5-0006Z5-Gh for ; Mon, 22 Aug 2011 05:41:13 +0000 Received: from ackee.canonical.com (localhost [127.0.0.1]) by ackee.canonical.com (Postfix) with ESMTP id 74A4FE0618 for ; Mon, 22 Aug 2011 05:41:13 +0000 (UTC) MIME-Version: 1.0 X-Launchpad-Project: lava-scheduler X-Launchpad-Branch: ~linaro-validation/lava-scheduler/trunk X-Launchpad-Message-Rationale: Subscriber X-Launchpad-Branch-Revision-Number: 73 X-Launchpad-Notification-Type: branch-revision To: Linaro Patch Tracker From: noreply@launchpad.net Subject: [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> Date: Mon, 22 Aug 2011 05:41:13 -0000 Reply-To: noreply@launchpad.net Sender: bounces@canonical.com Errors-To: bounces@canonical.com Precedence: bulk X-Generated-By: Launchpad (canonical.com); Revision="13697"; Instance="initZopeless config overlay" X-Launchpad-Hash: 0711575000a2d8bf461d49cf92c38ed24b8aca0b ------------------------------------------------------------ revno: 73 committer: Michael-Doyle Hudson 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 === 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