Skip to content

Commit

Permalink
modified call to subprocess.check_call for haproxy reload to close al…
Browse files Browse the repository at this point in the history
…l file descriptors in the child

references d2iq-archive#28
  • Loading branch information
cgbaker committed Dec 3, 2015
1 parent be1a5b4 commit 345debb
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion marathon_lb.py
Original file line number Diff line number Diff line change
Expand Up @@ -775,7 +775,7 @@ def reloadConfig():
if reloadCommand:
logger.info("reloading using %s", " ".join(reloadCommand))
try:
subprocess.check_call(reloadCommand)
subprocess.check_call(reloadCommand, close_fds=True)
except OSError as ex:
logger.error("unable to reload config using command %s",
" ".join(reloadCommand))
Expand Down

0 comments on commit 345debb

Please sign in to comment.