lua-users home
lua-l archive

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

On Tue, Jun 27, 2006 at 12:08:02PM -0700, Geo Massar wrote:
> > Does Pascal not give any control over how to handle signals? Does the
> > runtime always exit, or can you install a function to handle the signal?
> Pascal (if compiled for Win32) does have its own way to capture the ctrl-C
> signals and does exit quitely. You can write your own function to handle the

But can you capture and NOT exit, just run an arbitrary function?

> signal in a different way other than one with ANSI C.

If so, you should be able to call the lua_sethook() function from the
signal handler function the same way the C code does, shouldn't you?