Fixes issue #520

Closes inherited file handles in SABnzbd-Suite programs to prevent
them from taking over ports if xbmc.bin crashes.
This commit is contained in:
Lukas Heiniger 2012-04-25 17:16:35 +02:00
parent f02b9cb53d
commit d3a8cdc100

View File

@ -221,7 +221,7 @@ autoProcessConfig.write()
# ---------------------------------- # ----------------------------------
logging.debug('Launching SABnzbd...') logging.debug('Launching SABnzbd...')
subprocess.call(sabnzbd) subprocess.call(sabnzbd,close_fds=True)
logging.debug('...done') logging.debug('...done')
# SABnzbd will only complete the .ini file when we first access the web interface # SABnzbd will only complete the .ini file when we first access the web interface
@ -279,7 +279,7 @@ sickBeardConfig.write()
# launch SickBeard # launch SickBeard
# ---------------- # ----------------
logging.debug('Launching SickBeard...') logging.debug('Launching SickBeard...')
subprocess.call(sickBeard) subprocess.call(sickBeard,close_fds=True)
logging.debug('...done') logging.debug('...done')
# write CouchPotato settings # write CouchPotato settings
@ -322,7 +322,7 @@ couchPotatoConfig.write()
# ------------------ # ------------------
logging.debug('Launching CouchPotato...') logging.debug('Launching CouchPotato...')
subprocess.call(couchPotato) subprocess.call(couchPotato,close_fds=True)
logging.debug('...done') logging.debug('...done')
# write Headphones settings # write Headphones settings
@ -357,5 +357,5 @@ headphonesConfig.write()
# ----------------- # -----------------
logging.debug('Launching Headphones...') logging.debug('Launching Headphones...')
subprocess.call(headphones) subprocess.call(headphones,close_fds=True)
logging.debug('...done') logging.debug('...done')