lua-users home
lua-l archive

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

On Tue, May 14, 2013 at 9:45 AM, Luiz Henrique de Figueiredo
<> wrote:

> Bottom line: test the return value of os.execute if you want to handle ^C
> in forked processes.

What is the equivalent of WIFSIGNALED() from POSIX <sys/wait.h>?

> = os.execute("while :; do :; done")
^Cnil   exit    130
> = os.execute("exit 130")
nil     exit    130

There are no means for differentiating using os.execute(), as far as I can see.