lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


 Thanks for the clarification.  I'll get to work.

-----Original Message-----
From: lua-l-bounces@lists.lua.org [mailto:lua-l-bounces@lists.lua.org]
On Behalf Of lua-l-request@lists.lua.org
Sent: Wednesday, October 12, 2011 12:11 PM
To: lua-l@lists.lua.org
Subject: lua-l Digest, Vol 15, Issue 47

Date: Wed, 12 Oct 2011 09:22:34 -0500
From: Rob Hoelz <rob@hoelz.ro>
Subject: Re: atpanic chaining?
To: lua-l@lists.lua.org
Message-ID: <20111012092234.2737811b@hoelz.ro>
Content-Type: text/plain; charset="us-ascii"

On Wed, 12 Oct 2011 10:07:18 -0400
<AllanPfalzgraf@eaton.com> wrote:

> Does lua_atpanic() add to the process for a panic condition or just 
> replace the process?
> I am writing a set of libraries for communication using several 
> protocols.  In many situations more than one protocol is in use in a 
> single application.  Each protocol has its own shutdown procedure that

> should be called for a clean exit in a panic.  If each protocol makes 
> its own call to lua_atpanic() will all the panic functions be called 
> or only the last one to be registered?
>  
> 
> 	Allan Pfalzgraf 
> 	EATON
> 
> 	4201 North 27 Street 
> 	Milwaukee, WI 53216 
> 	tel: 414 449-6872 
> 	fax: 414 449-6616 
> 	AllanPfalzgraf@eaton.com 
> 	www.Eaton.com <http://www.eaton.com/> <http://www.eaton.com/>
> 
>  

Replaces.  You could write a panic function that calls each member of a
list of panic functions, though.