Remove signal watcher from zeronet.py
This commit is contained in:
parent
74ce0c50ff
commit
c198237938
1 changed files with 0 additions and 6 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue