summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2013-02-10 17:44:41 +0100
committerJoel Rosdahl <joel@rosdahl.net>2013-02-10 17:44:41 +0100
commit956990514235e0bccac79ccda060d8fff439ebe3 (patch)
tree5841fc7cc4e8a85fd1f5cd27f34cfc6645227be1
parent542effc8be4b0f9c129bea39bb1ef0ff81444bb0 (diff)
downloadminiircd-956990514235e0bccac79ccda060d8fff439ebe3.tar.gz
miniircd-956990514235e0bccac79ccda060d8fff439ebe3.zip
Fix race condition when tearing down test case
-rwxr-xr-xminiircd2
-rw-r--r--test.py1
2 files changed, 2 insertions, 1 deletions
diff --git a/miniircd b/miniircd
index f562b1e..a1b90b4 100755
--- a/miniircd
+++ b/miniircd
@@ -1,7 +1,7 @@
#! /usr/bin/env python
# Hey, Emacs! This is -*-python-*-.
#
-# Copyright (C) 2003, 2011-2012 Joel Rosdahl
+# Copyright (C) 2003, 2011-2013 Joel Rosdahl
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
diff --git a/test.py b/test.py
index 7b008fe..d8d6481 100644
--- a/test.py
+++ b/test.py
@@ -55,6 +55,7 @@ class ServerFixture(object):
def shutDown(self):
os.kill(self.child_pid, signal.SIGTERM)
+ os.waitpid(self.child_pid, 0)
if self.state_dir:
try:
shutil.rmtree(self.state_dir)