oleiade / Elevator

Elevator is an open source, on-disk key-value store. Provides high-performance bulk read-write operations over very large datasets while exposing a simple and efficient API.
http://elevator.readthedocs.org
MIT License
71 stars 12 forks source link

two ctrl+c can not shutdown the server #155

Open MOON-CLJ opened 11 years ago

MOON-CLJ commented 11 years ago

on ubuntu 12.04 when i ctrl+c the first time,show the Traceback below, it seems block in somewhere and the following ctrl+c seems be ingore, and then i use kill pid to force shutdown。

1, when the server start only for a short time Traceback (most recent call last): File "/usr/local/bin/elevator", line 9, in load_entry_point('Elevator==0.5d', 'console_scripts', 'elevator')() File "/usr/local/lib/python2.7/dist-packages/Elevator-0.5d-py2.7.egg/elevator/server.py", line 87, i n main runserver(config) File "/usr/local/lib/python2.7/dist-packages/Elevator-0.5d-py2.7.egg/elevator/server.py", line 47, i n runserver sockets = dict(poller.poll()) KeyboardInterrupt

or

2,when the server start for a longer time Traceback (most recent call last): File "/usr/local/bin/elevator", line 9, in load_entry_point('Elevator==0.5d', 'console_scripts', 'elevator')() File "/usr/local/lib/python2.7/dist-packages/Elevator-0.5d-py2.7.egg/elevator/server.py", line 82, in main runserver(config) File "/usr/local/lib/python2.7/dist-packages/Elevator-0.5d-py2.7.egg/elevator/server.py", line 57, in runserver activity_logger.info('Gracefully shuthing down workers') File "/usr/lib/python2.7/logging/init.py", line 1130, in info def info(self, msg, _args, *_kwargs): KeyboardInterrupt