you are calling fork every time you receive an event. you need to exit the process from the child and reap or ignore it on the parent. On Tue, Mar 29, 2011 at 6:09 AM, Ejay Greeves <ejay.greeves@yahoo.com>wrote:
I am wanting to code an inbound event program.
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.
con = ESL::ESLconnection.new('127.0.0.1', '8021', 'ClueCon') con.events("plain", "CHANNEL_HANGUP_COMPLETE")
loop do event = con.recvEvent pid = fork do
end
Process.detach(pid) end
This code does nothing but wait for an incoming event, creates an fork then detach however it still produces a defunct process.
I think con.recvEvent is the cause?
_______________________________________________ FreeSWITCH-users mailing list FreeSWITCH-users@lists.freeswitch.org http://lists.freeswitch.org/mailman/listinfo/freeswitch-users UNSUBSCRIBE:http://lists.freeswitch.org/mailman/options/freeswitch-users http://www.freeswitch.org
-- Anthony Minessale II FreeSWITCH http://www.freeswitch.org/ ClueCon http://www.cluecon.com/ Twitter: http://twitter.com/FreeSWITCH_wire AIM: anthm MSN:anthony_minessale@hotmail.com GTALK/JABBER/PAYPAL:anthony.minessale@gmail.com IRC: irc.freenode.net #freeswitch FreeSWITCH Developer Conference sip:888@conference.freeswitch.org googletalk:conf+888@conference.freeswitch.org pstn:+19193869900