Skip to content

Loading…

Provide pid at ProcessHandler #32

Closed
wants to merge 1 commit into from

2 participants

@ThinkerYzu

No description provided.

@k0s
Mozilla member
@k0s
Mozilla member

Can I ask the reason you want this?

@k0s
Mozilla member

pushed: 7ebf8cf

@k0s k0s closed this
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 15, 2012
  1. Provide pid at ProcessHandler

    Sinker Li committed
Showing with 4 additions and 0 deletions.
  1. +4 −0 mozprocess/mozprocess/processhandler.py
View
4 mozprocess/mozprocess/processhandler.py
@@ -754,6 +754,10 @@ def _readWithTimeout(self, f, timeout):
return ('', True)
return (f.readline(), False)
+ @property
+ def pid(self):
+ return self.proc.pid
+
### default output handlers
### these should be callables that take the output line
Something went wrong with that request. Please try again.