summaryrefslogtreecommitdiffstats
path: root/services
diff options
context:
space:
mode:
authorroot <root@ire.retiolum>2013-02-08 20:29:14 +0100
committerroot <root@ire.retiolum>2013-02-08 20:29:14 +0100
commita351123fe617f3d273cd2c1c148c861816046576 (patch)
tree4bcc1f9fb39a97823a17d82086befe77dec1ea88 /services
parentc013d579e8fd73697eb52b8aafd269cdfef385a5 (diff)
//services test-server: exit 0
Diffstat (limited to 'services')
-rwxr-xr-xservices/test-server.py3
1 files changed, 3 insertions, 0 deletions
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):