[Box Backup-commit] COMMIT r1366 - box/chris/general/lib/common
boxbackup-dev at fluffy.co.uk
boxbackup-dev at fluffy.co.uk
Mon Mar 5 00:01:38 GMT 2007
Author: chris
Date: 2007-03-05 00:01:38 +0000 (Mon, 05 Mar 2007)
New Revision: 1366
Modified:
box/chris/general/lib/common/Test.h
Log:
Sleep for a second after pid file is created to give the process time
to write its pid into it.
Modified: box/chris/general/lib/common/Test.h
===================================================================
--- box/chris/general/lib/common/Test.h 2007-03-05 00:01:05 UTC (rev 1365)
+++ box/chris/general/lib/common/Test.h 2007-03-05 00:01:38 UTC (rev 1366)
@@ -280,6 +280,9 @@
::fprintf(stdout, "done.\n");
}
+ // wait a second for the pid to be written to the file
+ ::sleep(1);
+
// read pid file
int pid = ReadPidFile(pidFile);
More information about the Boxbackup-commit
mailing list