Running a Lua script which blocks on I/O from stdin, it takes two Ctrl-C's to quit it. I think this is an old problem, and requires Linux-specific code (using sigsetaction) to solve, which is present in the 5.0 packages.
Reuben Thomas wrote: I need more info on this (mailing list links, etc.). Unfortunately the 5.0 Debian package is not well organized and doesn't isolate that patch.
Hello. Info about a bug and method, which was applied in Debian lua5.0. http://thread.gmane.org/gmane.comp.lang.lua.general/7543/focus=7552 http://thread.gmane.org/gmane.comp.lang.lua.general/7538/focus=7541 I think more simple way is to compile lua5.1 (executable only) with -ansi flag. Just add lua.o: lua.c $(LIBTOOL) --mode=compile $(CC) -c $(CPPFLAGS) $(CFLAGS) -ansi $< in debian/patches/debian_make.dpatch
I attach a simple patch against 5.1.4 to implement this feature.
Is there some problem with applying my patch?