Index: build/android/pylib/forwarder.py |
diff --git a/build/android/pylib/forwarder.py b/build/android/pylib/forwarder.py |
index ad22838d87291d7d2421bb176392155c1473a759..7c68e2115b8d4f8d3210b8c8f2cc544804f00dd9 100644 |
--- a/build/android/pylib/forwarder.py |
+++ b/build/android/pylib/forwarder.py |
@@ -249,7 +249,7 @@ class Forwarder(object): |
current process is returned. |
""" |
use_multiprocessing = Forwarder._MULTIPROCESSING_ENV_VAR in os.environ |
- return os.getppid() if use_multiprocessing else os.getpid() |
+ return os.getpgrp() if use_multiprocessing else os.getpid() |
def _InitHostLocked(self): |
"""Initializes the host forwarder daemon. |