From: Ondrej Lichtner <olichtne(a)redhat.com>
This commit fixes a deadlock situation that appears in case we interrupt
a command which results in the command ending a large amount of data at
once through the communication pipe. The pipe is buffered so the write
operation starts blocking until somebody starts reading from the pipe.
However the main process that would be reading this message is waiting
in a join() call creating a deadlock.
Signed-off-by: Ondrej Lichtner <olichtne(a)redhat.com>
---
lnst/Common/NetTestCommand.py | 1 -
1 file changed, 1 deletion(-)
diff --git a/lnst/Common/NetTestCommand.py b/lnst/Common/NetTestCommand.py
index 2ce9b67..b5569a5 100644
--- a/lnst/Common/NetTestCommand.py
+++ b/lnst/Common/NetTestCommand.py
@@ -144,7 +144,6 @@ class NetTestCommand:
if os.path.exists("/proc/%d" % self._pid):
logging.debug("Interrupting background command with id \"%s\", pid \"%d\"" % (self._id, self._pid))
os.killpg(os.getpgid(self._pid), signal.SIGINT)
- self._process.join()
def kill(self):
if os.path.exists("/proc/%d" % self._pid):
--
1.7.11.7