Skip to content
Snippets Groups Projects
Commit a2d0ea78 authored by cody burkard's avatar cody burkard
Browse files

fixed issue with regex matching

parent e9d034bd
No related branches found
No related tags found
No related merge requests found
......@@ -261,6 +261,8 @@ def monitor( self, timeoutms=None, findPid=True ):
# Look for PID
marker = chr( 1 ) + r'\d+\r\n'
if findPid and chr( 1 ) in data:
while not re.findall( marker, data ):
data += self.read( 1024 )
markers = re.findall( marker, data )
if markers:
self.lastPid = int( markers[ 0 ][ 1: ] )
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment