1
0
mirror of https://github.com/IEEE-SB-Passau/pelican-deployment-system.git synced 2017-09-06 16:35:38 +02:00

kill the pelican process at exit

This commit is contained in:
2016-06-11 01:07:18 +02:00
parent ed339034c0
commit 771af8ed17

View File

@@ -8,6 +8,7 @@ import sys
import logging
import shlex
import os
import atexit
log = logging.getLogger(__name__)
@@ -117,7 +118,10 @@ class DeploymentRunner:
self.build_proc = Popen(args,
cwd=str(self.build_repo_path),
env=self.build_proc_env)
atexit.register(self.build_proc.kill)
status = self.build_proc.wait()
atexit.unregister(self.build_proc.kill)
if status == 0:
# TODO: postproc...
pass