you are calling fork every time you receive an event.<div>you need to exit the process from the child and reap or ignore it on the parent.</div><div><br><br><div class="gmail_quote">On Tue, Mar 29, 2011 at 6:09 AM, Ejay Greeves <span dir="ltr">&lt;<a href="mailto:ejay.greeves@yahoo.com">ejay.greeves@yahoo.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;"><table cellspacing="0" cellpadding="0" border="0"><tbody><tr><td valign="top" style="font:inherit"><div><table border="0" cellpadding="0" cellspacing="0">
<tbody><tr><td style="font-style:inherit;font-variant:inherit;font-weight:inherit;line-height:inherit;font-size-adjust:inherit;font-stretch:inherit;font-family:arial;font-size:10pt"><div>I am wanting to code an inbound event program.</div>
<div><br></div><div>In order to see why I am getting zombie processes I stripped out all my code and used the minimum skeletcon code to do a test.</div><div><br></div><div>con = ESL::ESLconnection.new(&#39;127.0.0.1&#39;, &#39;8021&#39;, &#39;ClueCon&#39;)</div>
<div>con.events(&quot;plain&quot;, &quot;CHANNEL_HANGUP_COMPLETE&quot;)</div><div><br></div><div>loop do</div><div><span style="white-space:pre-wrap">        </span>event =
 con.recvEvent</div><div><span style="white-space:pre-wrap">        </span></div><div><span style="white-space:pre-wrap">        </span>pid = fork do</div><div><span style="white-space:pre-wrap">                </span></div><div><span style="white-space:pre-wrap"><br>
        </span>end</div><div><br></div><div><span style="white-space:pre-wrap">        </span>Process.detach(pid)</div><div><span style="white-space:pre-wrap">        </span></div><div>end</div><div><br></div><div><br></div><div>This code does nothing but wait for an incoming event, creates an fork then detach however it still produces a defunct process.</div>
<div><br></div><div>I think con.recvEvent is the cause?</div></td></tr></tbody></table></div></td></tr></tbody></table><br>



      <br>_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
<br></blockquote></div><br><br clear="all"><br>-- <br>Anthony Minessale II<br><br>FreeSWITCH <a href="http://www.freeswitch.org/">http://www.freeswitch.org/</a><br>ClueCon <a href="http://www.cluecon.com/">http://www.cluecon.com/</a><br>
Twitter: <a href="http://twitter.com/FreeSWITCH_wire">http://twitter.com/FreeSWITCH_wire</a><br><br>AIM: anthm<br><a href="mailto:MSN%3Aanthony_minessale@hotmail.com">MSN:anthony_minessale@hotmail.com</a><br>GTALK/JABBER/<a href="mailto:PAYPAL%3Aanthony.minessale@gmail.com">PAYPAL:anthony.minessale@gmail.com</a><br>
IRC: <a href="http://irc.freenode.net">irc.freenode.net</a> #freeswitch<br><br>FreeSWITCH Developer Conference<br><a href="mailto:sip%3A888@conference.freeswitch.org">sip:888@conference.freeswitch.org</a><br><a href="mailto:googletalk%3Aconf%2B888@conference.freeswitch.org">googletalk:conf+888@conference.freeswitch.org</a><br>
pstn:+19193869900<br>
</div>