[Box Backup-commit] COMMIT r1999 - box/trunk/lib/server

boxbackup-dev at fluffy.co.uk boxbackup-dev at fluffy.co.uk
Sat Dec 15 17:03:41 GMT 2007


Author: chris
Date: 2007-12-15 17:03:41 +0000 (Sat, 15 Dec 2007)
New Revision: 1999

Modified:
   box/trunk/lib/server/ServerControl.h
Log:
Report reason why killing a process failed.


Modified: box/trunk/lib/server/ServerControl.h
===================================================================
--- box/trunk/lib/server/ServerControl.h	2007-12-15 17:02:55 UTC (rev 1998)
+++ box/trunk/lib/server/ServerControl.h	2007-12-15 17:03:41 UTC (rev 1999)
@@ -140,6 +140,11 @@
 {
 	if(pid == 0 || pid == -1) return false;
 	bool killed = (::kill(pid, SIGTERM) == 0);
+	if (!killed)
+	{
+		BOX_ERROR("Failed to kill process " << pid << ": " <<
+			strerror(errno));
+	}
 	TEST_THAT(killed);
 	return killed;
 }




More information about the Boxbackup-commit mailing list