diff options
author | Chris Wilson <chris+github@qwirx.com> | 2006-08-09 17:29:59 +0000 |
---|---|---|
committer | Chris Wilson <chris+github@qwirx.com> | 2006-08-09 17:29:59 +0000 |
commit | b59a411d69caa7ff32119bd2a1fceb58565a581a (patch) | |
tree | a82c4fcd9aaca117ef973c7422cd145a6a5ac524 /bin/bbackupd | |
parent | bec6ea866b973c9661b4b2d4a7d342fa0a075185 (diff) |
* bbackupd.cpp
- Return the status code from InstallService() and RemoveService() as
exit code (0 on success, 1 on failure)
Diffstat (limited to 'bin/bbackupd')
-rw-r--r-- | bin/bbackupd/bbackupd.cpp | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/bin/bbackupd/bbackupd.cpp b/bin/bbackupd/bbackupd.cpp index d2279074..3c283596 100644 --- a/bin/bbackupd/bbackupd.cpp +++ b/bin/bbackupd/bbackupd.cpp @@ -40,8 +40,7 @@ int main(int argc, const char *argv[]) } if(argc == 2 && ::strcmp(argv[1], "-r") == 0) { - RemoveService(); - return 0; + return RemoveService(); } if((argc == 2 || argc == 3) && ::strcmp(argv[1], "-i") == 0) { @@ -50,8 +49,7 @@ int main(int argc, const char *argv[]) { config = argv[2]; } - InstallService(config); - return 0; + return InstallService(config); } bool runAsWin32Service = false; |