Skip to content

Commit

Permalink
replace call with Popen
Browse files Browse the repository at this point in the history
  • Loading branch information
pstauffer committed Feb 7, 2017
1 parent 5663516 commit e95c654
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gitlab-webhook-receiver.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,8 @@ def do_POST(self):
if gitlab_token_header == gitlab_token:
logging.info("Start executing '%s'" % command)
try:
subprocess.call(command)
# run command in background
subprocess.Popen(command)
self.send_response(200, "OK")
except OSError as err:
self.send_response(500, "OSError")
Expand Down

0 comments on commit e95c654

Please sign in to comment.