Skip to content

Commit

Permalink
fix #1832 -- replace hack with proper exit (thanks to watchdog)
Browse files Browse the repository at this point in the history
Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Jun 17, 2015
1 parent 8a69e98 commit 6f3002a
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions nikola/plugins/command/auto/__init__.py
Expand Up @@ -212,9 +212,8 @@ def __call__(self, environ, start_response):
ws.serve_forever()
except KeyboardInterrupt:
self.logger.info("Server is shutting down.")
# This is a hack, but something is locking up in a futex
# and exit() doesn't work.
os.kill(os.getpid(), 15)
observer.stop()
observer.join()

def do_rebuild(self, event):
self.logger.info('REBUILDING SITE (from {0})'.format(event.src_path))
Expand Down

0 comments on commit 6f3002a

Please sign in to comment.