summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorChris Wilson <chris+github@qwirx.com>2006-11-13 20:04:01 +0000
committerChris Wilson <chris+github@qwirx.com>2006-11-13 20:04:01 +0000
commit2b2acef11f34df1420447b4fcfa7ca5c401481a9 (patch)
tree647c77d755252c7364c3540ca17b1bf548242d9d /bin
parenta3583d8e0883e0232a3380e4cf1aabed6e3275eb (diff)
Don't try to write to the interprocess socket if it's not open (refs #3)
Diffstat (limited to 'bin')
-rw-r--r--bin/bbstored/BackupStoreDaemon.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/bin/bbstored/BackupStoreDaemon.cpp b/bin/bbstored/BackupStoreDaemon.cpp
index 91d7cd12..74885c57 100644
--- a/bin/bbstored/BackupStoreDaemon.cpp
+++ b/bin/bbstored/BackupStoreDaemon.cpp
@@ -228,12 +228,18 @@ void BackupStoreDaemon::Run()
{
// In server process -- use the base class to do the magic
ServerTLS<BOX_PORT_BBSTORED>::Run();
-
+
+ if (!mInterProcessCommsSocket.IsOpened())
+ {
+ return;
+ }
+
// Why did it stop? Tell the housekeeping process to do the same
if(IsReloadConfigWanted())
{
mInterProcessCommsSocket.Write("h\n", 2);
}
+
if(IsTerminateWanted())
{
mInterProcessCommsSocket.Write("t\n", 2);