Update of /cvsroot/monetdb/MonetDB5/src/tools
In directory sc8-pr-cvs16.sourceforge.net:/tmp/cvs-serv29377
Modified Files:
merovingian.mx
Log Message:
Reduce global warming: don't spin-lock.
Index: merovingian.mx
===================================================================
RCS file: /cvsroot/monetdb/MonetDB5/src/tools/merovingian.mx,v
retrieving revision 1.39
retrieving revision 1.40
diff -u -d -r1.39 -r1.40
--- merovingian.mx 2 Sep 2007 17:28:42 -0000 1.39
+++ merovingian.mx 2 Sep 2007 19:43:59 -0000 1.40
@@ -884,8 +884,11 @@
* clients coming in at the same time. We might need to fix this
* situation sometime. */
while (_keepListening == 1) {
- if (fgets(buf, 256, f) == NULL)
- continue; /* ignore EOF */
+ if (fgets(buf, 256, f) == NULL) {
+ /* ignore EOF, but don't spin-lock */
+ MT_sleep_ms(1000);
+ continue;
+ }
/* format is simple: database<space>command */
if ((p = strchr(buf, ' ')) == NULL) {
fprintf(stderr, "malformed control signal: %s\n", buf);
-------------------------------------------------------------------------
This SF.net email is sponsored by: Splunk Inc.
Still grepping through log files to find problems? Stop.
Now Search log events and configuration files using AJAX and a browser.
Download your FREE copy of Splunk now >> http://get.splunk.com/
_______________________________________________
Monetdb-checkins mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/monetdb-checkins