Fix in send_info_daemon for sigquit
This commit is contained in:
parent
42dc99c54d
commit
6e8fc34c94
1 changed files with 7 additions and 0 deletions
|
|
@ -10,11 +10,18 @@ import configparser
|
|||
import os
|
||||
from sys import exit
|
||||
from pathlib import Path
|
||||
import signal
|
||||
|
||||
#url="http://url/to/info"
|
||||
|
||||
# Get config from /etc/pastafari or ~/.config/pastafari
|
||||
|
||||
def catch_signal(sig, frame):
|
||||
print('Exiting...')
|
||||
exit(0)
|
||||
|
||||
signal.signal(signal.SIGINT, catch_signal)
|
||||
|
||||
def start():
|
||||
|
||||
yes_config=False
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue