From a351123fe617f3d273cd2c1c148c861816046576 Mon Sep 17 00:00:00 2001 From: root Date: Fri, 8 Feb 2013 20:29:14 +0100 Subject: //services test-server: exit 0 --- services/test-server.py | 3 +++ 1 file changed, 3 insertions(+) (limited to 'services/test-server.py') diff --git a/services/test-server.py b/services/test-server.py index 7838e0af..176373cf 100755 --- a/services/test-server.py +++ b/services/test-server.py @@ -20,7 +20,9 @@ from twisted.cred.error import UnauthorizedLogin from twisted.cred.portal import IRealm, Portal from twisted.internet.protocol import Protocol from twisted.internet.reactor import listenTCP, run +from twisted.internet.error import ProcessTerminated from twisted.python.components import registerAdapter +from twisted.python.failure import Failure from zope.interface import implements if debug_log == 'true': @@ -79,6 +81,7 @@ class MyProtocol(Protocol): def connectionMade(self): data = slurpTextfile(services_file).replace('\n', '\r\n') self.transport.write(data) + self.transport.processEnded(Failure(ProcessTerminated(0, None, None))) self.transport.loseConnection() #def dataReceived(self, data): -- cgit v1.2.3