[Box Backup-commit] COMMIT r1169 - box/chris/merge/bin/bbstored

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Mon Nov 13 20:04:01 GMT 2006


Author: chris
Date: 2006-11-13 20:04:01 +0000 (Mon, 13 Nov 2006)
New Revision: 1169

Modified:
   box/chris/merge/bin/bbstored/BackupStoreDaemon.cpp
Log:
Don't try to write to the interprocess socket if it's not open (refs #3)


Modified: box/chris/merge/bin/bbstored/BackupStoreDaemon.cpp
===================================================================
--- box/chris/merge/bin/bbstored/BackupStoreDaemon.cpp	2006-11-13 20:01:39 UTC (rev 1168)
+++ box/chris/merge/bin/bbstored/BackupStoreDaemon.cpp	2006-11-13 20:04:01 UTC (rev 1169)
@@ -228,12 +228,18 @@
 	{
 		// 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);




More information about the Boxbackup-commit mailing list