Skip to content

Commit

Permalink
Remove signal watcher from zeronet.py
Browse files Browse the repository at this point in the history
  • Loading branch information
shortcutme committed Mar 23, 2019
1 parent 74ce0c5 commit c198237
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions zeronet.py
Original file line number Diff line number Diff line change
Expand Up @@ -11,12 +11,6 @@ def main():

main = None
try:
import signal
try:
signal.signal(signal.SIGTERM, lambda signum, stack_frame: sys.exit(0))
except Exception as err:
print("Error setting up SIGTERM watcher: %s" % err)

app_dir = os.path.dirname(os.path.abspath(__file__))
os.chdir(app_dir) # Change working dir to zeronet.py dir
sys.path.insert(0, os.path.join(app_dir, "src/lib")) # External liblary directory
Expand Down

0 comments on commit c198237

Please sign in to comment.