exit with correct code following update. Needed to show successfull PP in NZBGet.

This commit is contained in:
clinton-hall 2014-04-29 14:59:43 +09:30
commit dd9d04cb52

View file

@ -339,6 +339,7 @@ def initialize(section=None):
def restart(): def restart():
install_type = versionCheck.CheckVersion().install_type install_type = versionCheck.CheckVersion().install_type
status = 0
popen_list = [] popen_list = []
if install_type in ('git', 'source'): if install_type in ('git', 'source'):
@ -350,5 +351,6 @@ def restart():
logger.close() logger.close()
p = subprocess.Popen(popen_list, cwd=os.getcwd()) p = subprocess.Popen(popen_list, cwd=os.getcwd())
p.wait() p.wait()
status = p.returncode
os._exit(0) os._exit(status)