ctrl+C now removes pid file
This commit is contained in:
parent
97f66424bd
commit
600cae12f5
|
@ -29,7 +29,6 @@ import os
|
||||||
import sre
|
import sre
|
||||||
import sys
|
import sys
|
||||||
import time
|
import time
|
||||||
import signal
|
|
||||||
from common import logger
|
from common import logger
|
||||||
from common import i18n
|
from common import i18n
|
||||||
|
|
||||||
|
@ -40,8 +39,6 @@ except:
|
||||||
PREFERRED_ENCODING = 'utf-8'
|
PREFERRED_ENCODING = 'utf-8'
|
||||||
from common.helpers import from_one_line, decode_string
|
from common.helpers import from_one_line, decode_string
|
||||||
|
|
||||||
signal.signal(signal.SIGINT, signal.SIG_DFL) # ^C exits the application
|
|
||||||
|
|
||||||
from pysqlite2 import dbapi2 as sqlite
|
from pysqlite2 import dbapi2 as sqlite
|
||||||
|
|
||||||
if os.name == 'nt':
|
if os.name == 'nt':
|
||||||
|
|
Loading…
Reference in New Issue