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

Fix atexit not working on SIGTERM #1882

Merged
merged 3 commits into from
Jan 30, 2019
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove redundant import statement
  • Loading branch information
blurHY committed Jan 30, 2019
commit cd6f5bbce2c98492c597492f1dd1356ff0ab16f3
1 change: 0 additions & 1 deletion zeronet.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,6 @@ def main():

main = None
try:
import atexit
from signal import signal, SIGTERM

signal(SIGTERM, lambda signum, stack_frame: sys.exit(0))
Expand Down