forked from github/pelican
Merge pull request #3164 from marcusdesai/fix/issue-3163
This commit is contained in:
commit
e8076bfe03
1 changed files with 9 additions and 7 deletions
|
|
@ -543,13 +543,15 @@ def main(argv=None):
|
|||
target=listen,
|
||||
args=(settings.get('BIND'), settings.get('PORT'),
|
||||
settings.get("OUTPUT_PATH"), excqueue))
|
||||
try:
|
||||
p1.start()
|
||||
p2.start()
|
||||
exc = excqueue.get()
|
||||
p1.terminate()
|
||||
p2.terminate()
|
||||
if exc is not None:
|
||||
logger.critical(exc)
|
||||
finally:
|
||||
p1.terminate()
|
||||
p2.terminate()
|
||||
elif args.autoreload:
|
||||
autoreload(args)
|
||||
elif args.listen:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue