| Index: scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py
|
| diff --git a/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py b/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py
|
| index ea3c619976c857f27e66c2cefcae7b6e454e78dc..2f22dd39295b423bb3c08be7185d9bc24e23f6ce 100644
|
| --- a/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py
|
| +++ b/scripts/slave/recipe_modules/goma/resources/cloudtail_utils.py
|
| @@ -20,13 +20,9 @@ def start_cloudtail(args):
|
| 'tail',
|
| '--log-id', 'goma_compiler_proxy',
|
| '--path',
|
| - goma_utils.GetLatestGomaCompilerProxyInfo()],
|
| - stdout=open(os.devnull, 'w'),
|
| - stderr=open(os.devnull, 'w'),
|
| - close_fds=True)
|
| -
|
| - sys.stdout.write(str(proc.pid))
|
| -
|
| + goma_utils.GetLatestGomaCompilerProxyInfo()])
|
| + with open(args.pid_file, 'w') as f:
|
| + f.write(str(proc.pid))
|
|
|
| def main():
|
| parser = argparse.ArgumentParser(
|
| @@ -39,6 +35,8 @@ def main():
|
| parser_start.set_defaults(command='start')
|
| parser_start.add_argument('--cloudtail-path', required=True,
|
| help='path of cloudtail binary')
|
| + parser_start.add_argument('--pid-file', required=True,
|
| + help='file written pid')
|
|
|
| parser_stop = subparsers.add_parser('stop',
|
| help='subcommand to stop cloudtail')
|
|
|