Simplify reading pid from mnexec.
This commit is contained in:
1 parent
f510caa0e7
commit
67b06f3a83
1 file changed
+2
-5
+2
-5
@@ -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 ):
|
||||
|
||||
Reference in new issue
Block a user