diff options
author | root <root@ire.retiolum> | 2013-02-08 20:29:14 +0100 |
---|---|---|
committer | root <root@ire.retiolum> | 2013-02-08 20:29:14 +0100 |
commit | a351123fe617f3d273cd2c1c148c861816046576 (patch) | |
tree | 4bcc1f9fb39a97823a17d82086befe77dec1ea88 /services | |
parent | c013d579e8fd73697eb52b8aafd269cdfef385a5 (diff) |
//services test-server: exit 0
Diffstat (limited to 'services')
-rwxr-xr-x | services/test-server.py | 3 |
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): |