Simplify reading pid from mnexec.

This commit is contained in:
Bob Lantz committed 2012-03-13 22:42:49 -07:00
1 parent f510caa0e7
commit 67b06f3a83
1 file changed
+2 -5
+2 -5
View File
@@ -101,11 +101,8 @@ class Node( object ):
self.waiting = False
# Stash additional information as desired
self.args = kwargs
x = ""
while "\n" not in x:
self.waitReadable()
x += self.read(1)
self.pid = int(x[1:-1])
# Read pid from mnexec
self.pid = int( self.readline()[ 1: ] )
@classmethod
def fdToNode( cls, fd ):