Commit 9e912f98 authored by Martín Ferrari's avatar Martín Ferrari

yay, more bugs (str->int)

parent c922e55a
......@@ -488,7 +488,7 @@ class Client(object):
self._send_cmd("PROC", "POLL", pid)
code, text = self._read_reply()
if code / 100 == 2:
exitcode = text.split()[0]
exitcode = int(text.split()[0])
return exitcode
if code / 100 == 4:
return Null
......@@ -500,7 +500,7 @@ class Client(object):
returns the exitcode."""
self._send_cmd("PROC", "WAIT", pid)
text = self._read_and_check_reply()
exitcode = text.split()[0]
exitcode = int(text.split()[0])
return exitcode
def signal(self, pid, sig = signal.SIGTERM):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment