<br><br><div><span class="gmail_quote">On 2/21/07, <b class="gmail_sendername">David Nicol</b> <<a href="mailto:davidnicol@gmail.com">davidnicol@gmail.com</a>> 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. Well that was dumb. 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.
<br></div></div><br>-- <br>Trixter <a href="http://www.0xdecafbad.com">http://www.0xdecafbad.com</a> Bret McDanel<br>Belfast +44 28 9099 6461 US +1 516 687 5200<br><a href="http://www.trxtel.com">http://www.trxtel.com
</a> the VoIP provider that pays you!