Show More
@@ -193,7 +193,7 b' class server(object):' | |||||
193 | req = dispatch.request(args[:], copiedui, self.repo, self.cin, |
|
193 | req = dispatch.request(args[:], copiedui, self.repo, self.cin, | |
194 | self.cout, self.cerr) |
|
194 | self.cout, self.cerr) | |
195 |
|
195 | |||
196 | ret = dispatch.dispatch(req) or 0 # might return None |
|
196 | ret = (dispatch.dispatch(req) or 0) & 255 # might return None | |
197 |
|
197 | |||
198 | # restore old cwd |
|
198 | # restore old cwd | |
199 | if '--cwd' in args: |
|
199 | if '--cwd' in args: |
@@ -104,6 +104,9 b' def checkruncommand(server):' | |||||
104 | # make sure --config doesn't stick |
|
104 | # make sure --config doesn't stick | |
105 | runcommand(server, ['id']) |
|
105 | runcommand(server, ['id']) | |
106 |
|
106 | |||
|
107 | # negative return code should be masked | |||
|
108 | runcommand(server, ['id', '-runknown']) | |||
|
109 | ||||
107 | def inputeof(server): |
|
110 | def inputeof(server): | |
108 | readchannel(server) |
|
111 | readchannel(server) | |
109 | server.stdin.write('runcommand\n') |
|
112 | server.stdin.write('runcommand\n') |
General Comments 0
You need to be logged in to leave comments.
Login now