path: root/bin/bbackupd/Win32ServiceFunctions.h
diff options
authorChris Wilson <>2007-10-17 12:53:29 +0000
committerChris Wilson <>2007-10-17 12:53:29 +0000
commit213ee3a965d0b0dcba7207917ad7654d31d01edf (patch)
treeb264ad9df54b1d0e5d188baea1fdce2179d4e574 /bin/bbackupd/Win32ServiceFunctions.h
parent10d5c119ea513a17ad9fad2c65942d482aa317dd (diff)
Record the exit status of the daemon when running as a service, and
return it to Windows so that Windows doesn't tell the admin that "the service did not report an error" when it stopped unexpectedly. When failing to contact the SCM, report a textual error message as well as the error code. Make OurService() take a const char * instead of char *, so that we can pass it a std::string.c_str(). InstallService creates service using "-s" option instead of "--service", which no longer works once we use getopt() for option processing (to follow). (merges [1853])
Diffstat (limited to 'bin/bbackupd/Win32ServiceFunctions.h')
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/bbackupd/Win32ServiceFunctions.h b/bin/bbackupd/Win32ServiceFunctions.h
index cecd5c7b..683cb8a6 100644
--- a/bin/bbackupd/Win32ServiceFunctions.h
+++ b/bin/bbackupd/Win32ServiceFunctions.h
@@ -14,6 +14,6 @@
int RemoveService (void);
int InstallService (const char* pConfigFilePath);
-int OurService (char* pConfigFileName);
+int OurService (const char* pConfigFileName);