summaryrefslogtreecommitdiffstats
path: root/pyLoadCore.py
diff options
context:
space:
mode:
authorGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-13 15:25:32 +0200
committerGravatar RaNaN <Mast3rRaNaN@hotmail.de> 2011-10-13 15:25:32 +0200
commit43460c40d00819535dfeecfdb80f8a608f2190fd (patch)
tree351518d8db3e5ee12689af4e019d5c3fc90bd212 /pyLoadCore.py
parentpatches from #392 (diff)
downloadpyload-43460c40d00819535dfeecfdb80f8a608f2190fd.tar.xz
improvement for hook plugins, new internal plugin type
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-xpyLoadCore.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/pyLoadCore.py b/pyLoadCore.py
index ad84bdef5..56f32c9c5 100755
--- a/pyLoadCore.py
+++ b/pyLoadCore.py
@@ -125,8 +125,12 @@ class Core(object):
self.quitInstance()
exit()
elif option == "--status":
- print self.isAlreadyRunning()
- exit()
+ pid = self.isAlreadyRunning()
+ if self.isAlreadyRunning():
+ print pid
+ exit(0)
+ else:
+ exit(1)
elif option == "--clean":
self.cleanTree()
exit()