Skip to content

Loading…

Fixes issue #520 #523

Merged
merged 1 commit into from

2 participants

@3rdcycle

Closes inherited file handles in SABnzbd-Suite programs to prevent
them from taking over ports if xbmc.bin crashes.

@3rdcycle 3rdcycle Fixes issue #520
Closes inherited file handles in SABnzbd-Suite programs to prevent
them from taking over ports if xbmc.bin crashes.
d3a8cdc
@sraue sraue merged commit ba88665 into OpenELEC:master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 25, 2012
  1. @3rdcycle

    Fixes issue #520

    3rdcycle committed
    Closes inherited file handles in SABnzbd-Suite programs to prevent
    them from taking over ports if xbmc.bin crashes.
View
8 packages/addons/service/downloadmanager/SABnzbd-Suite/source/bin/SABnzbd-Suite.py
@@ -221,7 +221,7 @@ def loadWebInterface(url,user,pwd):
# ----------------------------------
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 @@ def loadWebInterface(url,user,pwd):
# 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 @@ def loadWebInterface(url,user,pwd):
# ------------------
logging.debug('Launching CouchPotato...')
-subprocess.call(couchPotato)
+subprocess.call(couchPotato,close_fds=True)
logging.debug('...done')
# write Headphones settings
@@ -357,5 +357,5 @@ def loadWebInterface(url,user,pwd):
# -----------------
logging.debug('Launching Headphones...')
-subprocess.call(headphones)
+subprocess.call(headphones,close_fds=True)
logging.debug('...done')
Something went wrong with that request. Please try again.