<br><br><div><span class="gmail_quote">On 2/21/07, <b class="gmail_sendername">David Nicol</b> &lt;<a href="mailto:davidnicol@gmail.com">davidnicol@gmail.com</a>&gt; wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
at one point Monday I accidentally launched a thousand freeswitch processes<br>and crashed my box.&nbsp;&nbsp;Well that was dumb.&nbsp;&nbsp;But here is a patch to switch.c that<br>makes freeswitch refuse to start if the process listed in<br>
freeswitch.pid is still running,<br>and also does flock locking on the logfile to serialize the time<br>between performing<br>that check and writing our own pid there.</blockquote><div><br><br><br>To anyone that runs multiple instances you want to ensure that the db dir isnt used by some other FS process as well.&nbsp; 
<br></div></div><br>-- <br>Trixter <a href="http://www.0xdecafbad.com">http://www.0xdecafbad.com</a>&nbsp;&nbsp;&nbsp;&nbsp; Bret McDanel<br>Belfast +44 28 9099 6461&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;US +1 516 687 5200<br><a href="http://www.trxtel.com">http://www.trxtel.com
</a> the VoIP provider that pays you!