From b079eedb1ba987705f7c4e57aa6bce5b445d5e8b Mon Sep 17 00:00:00 2001
From: Chad Metcalf <cmetcalf@archrock.com>
Date: Mon, 3 Nov 2008 20:03:09 -0800
Subject: [PATCH] Work around for the random rm deaths

Work around for bug reported in http://buildbot.net/trac/ticket/198
Specifically a solution for http://buildbot.net/trac/ticket/284
---
 buildbot/slave/commands.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/buildbot/slave/commands.py b/buildbot/slave/commands.py
index 32a8fdb..ca96bea 100644
--- a/buildbot/slave/commands.py
+++ b/buildbot/slave/commands.py
@@ -1392,6 +1392,8 @@ class SourceBase(Command):
         command = ["rm", "-rf", d]
         c = ShellCommand(self.builder, command, self.builder.basedir,
                          sendRC=0, timeout=self.timeout)
+        # Work around for Bug #
+        c.usePTY = False
         self.command = c
         # sendRC=0 means the rm command will send stdout/stderr to the
         # master, but not the rc=0 when it finishes. That job is left to
-- 
1.6.0.2


