exit/die������Ӱ��

��swoole�����н�ֹʹ��exit/die�����PHP��������exit/die����ǰ������Worker���̡�Task���̡�User���̡��Լ�swoole_process���̻������˳���

����ʹ��try/catch�ķ�ʽ�滻exit/die��ʵ���ж�ִ������PHP��������ջ��

function swoole_exit($msg)
{
    //php-fpm�Ļ���
    if (ENV=='php')
    {
        exit($msg);
    }
    //swoole�Ļ���
    else
    {
        throw new Swoole\ExitException($msg);
    }
}

�쳣����ķ�ʽ��exit/die���Ѻã���Ϊ�쳣�ǿɿصģ�exit/die���ɿء�����������try/catch���ɲ����쳣������ֹ��ǰ������Worker���̿��Լ��������µ����󣬶�exit/die�ᵼ�½���ֱ���˳�����ǰ���̱�������б�������Դ���ᱻ���١���������ڻ�����������Ҫ��������exit/dieҲ��ȫ��������