mirror of
https://github.com/archr-linux/Arch-R.git
synced 2026-03-31 14:41:55 -07:00
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:
@@ -221,7 +221,7 @@ autoProcessConfig.write()
|
||||
# ----------------------------------
|
||||
|
||||
logging.debug('Launching SABnzbd...')
|
||||
subprocess.call(sabnzbd)
|
||||
subprocess.call(sabnzbd,close_fds=True)
|
||||
logging.debug('...done')
|
||||
|
||||
# SABnzbd will only complete the .ini file when we first access the web interface
|
||||
@@ -279,7 +279,7 @@ sickBeardConfig.write()
|
||||
# launch SickBeard
|
||||
# ----------------
|
||||
logging.debug('Launching SickBeard...')
|
||||
subprocess.call(sickBeard)
|
||||
subprocess.call(sickBeard,close_fds=True)
|
||||
logging.debug('...done')
|
||||
|
||||
# write CouchPotato settings
|
||||
@@ -322,7 +322,7 @@ couchPotatoConfig.write()
|
||||
# ------------------
|
||||
|
||||
logging.debug('Launching CouchPotato...')
|
||||
subprocess.call(couchPotato)
|
||||
subprocess.call(couchPotato,close_fds=True)
|
||||
logging.debug('...done')
|
||||
|
||||
# write Headphones settings
|
||||
@@ -357,5 +357,5 @@ headphonesConfig.write()
|
||||
# -----------------
|
||||
|
||||
logging.debug('Launching Headphones...')
|
||||
subprocess.call(headphones)
|
||||
subprocess.call(headphones,close_fds=True)
|
||||
logging.debug('...done')
|
||||
|
||||
Reference in New Issue
Block a user