Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Clean shutdown with SIGINT #1

Closed
foxbunny opened this issue Oct 6, 2015 · 0 comments
Closed

Clean shutdown with SIGINT #1

foxbunny opened this issue Oct 6, 2015 · 0 comments
Assignees

Comments

@foxbunny
Copy link
Contributor

foxbunny commented Oct 6, 2015

FSAL currently isn't able to shut down cleanly on keyboard interrupt. When interrupt is received, the following traceback is printed before server quits:

Traceback (most recent call last):
  File "/home/hajime/.envs/libtest/bin/fsal", line 9, in <module>
    load_entry_point('fsal==0.0.1', 'console_scripts', 'fsal')()
  File "/home/hajime/.envs/libtest/lib/python2.7/site-packages/fsal/server.py", line 126, in main
    server.run()
  File "/home/hajime/.envs/libtest/lib/python2.7/site-packages/fsal/server.py", line 83, in run
    server.serve_forever()
  File "/usr/lib64/python2.7/contextlib.py", line 35, in __exit__
    self.gen.throw(type, value, traceback)
  File "/home/hajime/.envs/libtest/lib/python2.7/site-packages/fsal/server.py", line 110, in open_socket
    sock.shutdown(socket.SHUT_RDWR)
  File "/home/hajime/.envs/libtest/lib/python2.7/site-packages/gevent/socket.py", line 519, in shutdown
    self._sock.shutdown(how)
socket.error: [Errno 9] Bad file descriptor

(Tested with code in a_hand branch).

@goodbadwolf goodbadwolf self-assigned this Oct 6, 2015
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants