diff --git a/mininet/node.py b/mininet/node.py
index 9e50319eda74a1b27d927ec9b9775a7bb96c0b05..258ce84e24d9159083820f25f2dd9a6e3d05cb5b 100644
--- a/mininet/node.py
+++ b/mininet/node.py
@@ -250,7 +250,7 @@ def monitor( self, timeoutms=None, findPid=True ):
         self.waitReadable( timeoutms )
         data = self.read( 1024 )
         # Look for PID
-        marker = chr( 1 ) + r'\d+'
+        marker = chr( 1 ) + r'\d+\r\n'
         if findPid and chr( 1 ) in data:
             markers = re.findall( marker, data )
             if markers: