lua-users home
lua-l archive

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



Hi guys,
thank you all, for taking time to help me.

i am not embedding Lua into my own C++ development.
i am using Lua because it is the scripting used on an updater-software called
IndigoRose's TrueUpdate.
(trueupdate is the container c++ software that integrates Lua)

now i want to script a loop.
but what happend if while looping, the user press "shut down computer" ?

i need to detect the broadcasted FINISH win_message, so i can exit the loop
and not "hanging" the updater.

i am asking for this propietary flag to indigorose's guys, but i thought
that may be Lua has something to break the script.

thanks again,
diego



>
> > The problem in your case might be that Lua has no native support for
> > working with signals
>
> But you can do it in C. The Lua standalone interpreter handles SIGINT signals
> by setting up hooks to abort the running Lua program gracefully. See
> http://www.lua.org/source/5.1/lua.c.html#docall


Invite your mail contacts to join your friends list with Windows Live Spaces. It's easy! Try it!