]> git-server-git.apps.pok.os.sepia.ceph.com Git - teuthology.git/commitdiff
Add comment explaining 'preexec_fn=os.setpgrp'
authorZack Cerza <zack@cerza.org>
Fri, 30 May 2014 14:56:27 +0000 (09:56 -0500)
committerZack Cerza <zack@cerza.org>
Fri, 30 May 2014 14:56:27 +0000 (09:56 -0500)
Signed-off-by: Zack Cerza <zack.cerza@inktank.com>
teuthology/worker.py

index 7c80d957743a22b1d972b68f93317b5406f21cdc..2e3891c4449ebfa8c0c3c639cb32e844066cefcb 100644 (file)
@@ -235,6 +235,9 @@ def main(ctx):
                 '--name',
                 job_config['name'],
             ]
+            # Execute teuthology-results, passing 'preexec_fn=os.setpgrp' to
+            # make sure that it will continue to run if this worker process
+            # dies (e.g. because of a restart)
             result_pid = subprocess.Popen(args=args,
                                           preexec_fn=os.setpgrp,).pid
             log.info("teuthology-results PID: %s", result_pid)