1
0
Fork 0
forked from github/pelican

Merge pull request #3164 from marcusdesai/fix/issue-3163

This commit is contained in:
Justin Mayer 2023-07-27 22:11:28 +02:00 committed by GitHub
commit e8076bfe03
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: