aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
Diffstat (limited to 'test')
-rwxr-xr-xtest/functional/util/dummy_clam.py2
-rwxr-xr-xtest/functional/util/dummy_fprot.py2
2 files changed, 4 insertions, 0 deletions
diff --git a/test/functional/util/dummy_clam.py b/test/functional/util/dummy_clam.py
index 8ef6ef476..6be20de57 100755
--- a/test/functional/util/dummy_clam.py
+++ b/test/functional/util/dummy_clam.py
@@ -8,6 +8,7 @@ try:
import SocketServer as socketserver
except:
import socketserver
+import signal
class MyTCPHandler(socketserver.BaseRequestHandler):
@@ -24,6 +25,7 @@ if __name__ == "__main__":
pid = os.fork()
if pid > 0:
sys.exit(0)
+ signal.alarm(5)
HOST = "localhost"
diff --git a/test/functional/util/dummy_fprot.py b/test/functional/util/dummy_fprot.py
index 64e086241..082934f4d 100755
--- a/test/functional/util/dummy_fprot.py
+++ b/test/functional/util/dummy_fprot.py
@@ -8,6 +8,7 @@ try:
import SocketServer as socketserver
except:
import socketserver
+import signal
class MyTCPHandler(socketserver.BaseRequestHandler):
@@ -24,6 +25,7 @@ if __name__ == "__main__":
pid = os.fork()
if pid > 0:
sys.exit(0)
+ signal.alarm(5)
HOST = "localhost"