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,
|
target=listen,
|
||||||
args=(settings.get('BIND'), settings.get('PORT'),
|
args=(settings.get('BIND'), settings.get('PORT'),
|
||||||
settings.get("OUTPUT_PATH"), excqueue))
|
settings.get("OUTPUT_PATH"), excqueue))
|
||||||
p1.start()
|
try:
|
||||||
p2.start()
|
p1.start()
|
||||||
exc = excqueue.get()
|
p2.start()
|
||||||
p1.terminate()
|
exc = excqueue.get()
|
||||||
p2.terminate()
|
if exc is not None:
|
||||||
if exc is not None:
|
logger.critical(exc)
|
||||||
logger.critical(exc)
|
finally:
|
||||||
|
p1.terminate()
|
||||||
|
p2.terminate()
|
||||||
elif args.autoreload:
|
elif args.autoreload:
|
||||||
autoreload(args)
|
autoreload(args)
|
||||||
elif args.listen:
|
elif args.listen:
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue