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:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user