diff options
author | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-13 15:25:32 +0200 |
---|---|---|
committer | RaNaN <Mast3rRaNaN@hotmail.de> | 2011-10-13 15:25:32 +0200 |
commit | 43460c40d00819535dfeecfdb80f8a608f2190fd (patch) | |
tree | 351518d8db3e5ee12689af4e019d5c3fc90bd212 /pyLoadCore.py | |
parent | patches from #392 (diff) | |
download | pyload-43460c40d00819535dfeecfdb80f8a608f2190fd.tar.xz |
improvement for hook plugins, new internal plugin type
Diffstat (limited to 'pyLoadCore.py')
-rwxr-xr-x | pyLoadCore.py | 8 |
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() |