OpenSim does use a blocking call for reading from standard input. So it shouldn't be that causing the problem. Unless there is some bug in mono, but no one else has ever reported such a problem.<br><br>One thing to try is:<br><pre>OpenSim.exe -background True<br><br>Which makes Opensim not read from the command line at all. Of course then you can't use console commands. But that might be acceptable for what you want.<br></pre><br><b><i>Count László de Almásy <calmasy@gmail.com></i></b> wrote:<blockquote class="replbq" style="border-left: 2px solid rgb(16, 16, 255); margin-left: 5px; padding-left: 5px;"> Greetings,<br><br>I'm using a software suite called 'daemontools' to handle<br>start/stop/restart of OpenSim.exe on my Linux system. The added<br>benefit of this method is that the process is "supervised" such that<br>if it crashes, it's automatically restarted. I use it to handle quite<br>a few services on my system.<br><br>One problem however with opensim- while it
does work supervised, the<br>cpu also jumps up to 100%. Running strace on the process shows what's<br>happening:<br><br>read(0, ""..., 1024) = 0<br>read(0, ""..., 1024) = 0<br>read(0, ""..., 1024) = 0<br>read(0, ""..., 1024) = 0<br>read(0, ""..., 1024) = 0<br>read(0, ""..., 1024) = 0<br>read(0, ""..., 1024) = 0<br>read(0, ""..., 1024) = 0<br>read(0, ""..., 1024) = 0<br><br>[...]<br><br>over and over and over. So I inquired on a mailing list where<br>daemontools is discussed, and was told that this is a bug in opensim;<br>that the process is repeatedly reading standard input in non-blocking<br>mode, without first checking that there are any bytes to read.<br><br>Does this sound right? If so, can it be fixed? Here is the relevant<br>thread on the supervision mailing list for more
info:<br><br>http://thread.gmane.org/gmane.comp.sysutils.supervision.general/1931<br><br>And more about daemontools here:<br><br>http://cr.yp.to/daemontools/faq.html<br><br>Any help appreciated.<br><br>-- <br>Cheers, László<br>_______________________________________________<br>Opensim-dev mailing list<br>Opensim-dev@lists.berlios.de<br>https://lists.berlios.de/mailman/listinfo/opensim-dev<br></blockquote><br><p>