| OLD | NEW |
| 1 # Copyright 2015 The Chromium Authors. All rights reserved. | 1 # Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 # Use of this source code is governed by a BSD-style license that can be | 2 # Use of this source code is governed by a BSD-style license that can be |
| 3 # found in the LICENSE file. | 3 # found in the LICENSE file. |
| 4 | 4 |
| 5 """Defines the task RPC methods.""" | 5 """Defines the client RPC methods.""" |
| 6 | 6 |
| 7 import os | 7 import os |
| 8 import sys | 8 import sys |
| 9 import logging | 9 import logging |
| 10 import threading | 10 import threading |
| 11 | 11 |
| 12 #pylint: disable=relative-import | 12 #pylint: disable=relative-import |
| 13 import common_lib | 13 import common_lib |
| 14 | 14 |
| 15 # Map swarming_client to use subprocess42 | 15 # Map swarming_client to use subprocess42 |
| (...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 142 def Wait(cls, key): | 142 def Wait(cls, key): |
| 143 return cls._processes[key].proc.wait() | 143 return cls._processes[key].proc.wait() |
| 144 | 144 |
| 145 @classmethod | 145 @classmethod |
| 146 def Poll(cls, key): | 146 def Poll(cls, key): |
| 147 return cls._processes[key].proc.poll() | 147 return cls._processes[key].proc.poll() |
| 148 | 148 |
| 149 @classmethod | 149 @classmethod |
| 150 def GetPid(cls, key): | 150 def GetPid(cls, key): |
| 151 return cls._processes[key].proc.pid | 151 return cls._processes[key].proc.pid |
| OLD | NEW |