Commit graph

26 commits

Author SHA1 Message Date
Emmanuel Gil Peyrot
1a23a874bc pposix, signal: Ignore unused arguments. 2018-08-08 09:28:04 +02:00
Emmanuel Gil Peyrot
9d9392a941 net, pposix, signal: Check for redefined defines, fix warnings. 2018-08-08 09:27:34 +02:00
Kim Alvefur
5485202439 util.signal: Fix loop (fixes #1047)
A pre-commit version probably started with i = nsig and counted down,
then an incomplete change to counting up was done
2017-11-30 19:35:35 +01:00
Kim Alvefur
27d99dd43b util.signal: Use a static array to keep track of pending signals (fixes #1029) 2017-11-14 15:20:14 +01:00
Kim Alvefur
df46957185 util.signal: Enable all GNU features, _DEFAULT_SOURCE doesn't have the desired effect before glibc 2.19 2017-03-12 12:49:34 +01:00
Kim Alvefur
bde567fd42 util.signal: Restore non-standard GNU "default" behaviour of signal(2) 2017-03-11 16:41:23 +01:00
Kim Alvefur
d205c78327 util.pposix, configure: Move _GNU_SOURCE macro into source files 2017-03-01 22:27:11 +01:00
Kim Alvefur
40d8e257d8 util-src/*.c: Attach pointer * to name instead of type 2017-02-12 16:42:29 +01:00
Kim Alvefur
5b10d245e3 util-src: Make C modules assert that the Lua runtime matches what it was compiled for 2017-01-08 14:21:08 +01:00
Kim Alvefur
ddeed6873e util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to support 5.1 2015-04-26 12:38:37 +02:00
Florian Zeitz
4d46c2e866 util-src/*.c: Per convention call luaL_error() as argument to return 2015-04-03 20:30:14 +02:00
Kim Alvefur
e866ef555a util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux 2015-04-03 19:52:48 +02:00
Kim Alvefur
8affcc3ff7 util-src/*.c: Add macro for compiling with Lua 5.2 2014-09-17 14:30:29 +02:00
Kim Alvefur
4f6f0fe480 util-src/*.c: Use the more concise lua_setfield 2014-09-17 02:23:17 +02:00
Kim Alvefur
c57e98cd7d util-src/*.c: Don't create globals when loaded 2014-09-16 21:56:18 +02:00
Waqas Hussain
1f75bd5099 util.signal: Moved a variable declaration to the top of a function, for ANSI C compliance. 2010-06-20 04:07:55 +05:00
Waqas Hussain
c4f2a6c8b3 util.signal: Removed #include <sys/param.h>, as it appears unnecessary. 2010-06-20 04:01:25 +05:00
Waqas Hussain
8840b66c84 util.signal: Make kill() available on OS X (thanks darkrain). 2010-06-20 03:36:46 +05:00
Waqas Hussain
f832bae509 util.signal: Make kill() available on OpenBSD, NetBSD (thanks Florob, filip). 2010-06-15 16:57:15 +05:00
Tobias Markmann
8f18928543 util.signal: Using stdlib.h instead of malloc.h. 2010-01-15 18:30:33 +01:00
Matthew Wild
15b926d7a2 util.signal: Restore the old debug hook earlier, just in case we receive another signal between clearing the signal queue and restoring it 2010-01-10 03:54:29 +00:00
Matthew Wild
2fca9d7e79 util.signal: Update version in header, and author's email 2010-01-10 00:31:38 +00:00
Matthew Wild
ca9c6121a2 util.signal: Queue up multiple signals, instead of trampling on the previous debug hook (and never clearing our own) 2010-01-10 00:28:48 +00:00
Matthew Wild
7cbfe364b6 util.signal: Update header comment for new filename 2009-12-30 20:24:11 +00:00
Waqas Hussain
d37732ee69 util.signal: Make kill() available on Solaris; really fixes #136. 2009-12-09 16:25:18 +05:00
Brian Cully
dec9e54220 util-src/Makefile: Clean up makefile, rename lsignal.c to signal.c 2009-12-04 03:02:25 +00:00
Renamed from util-src/lsignal.c (Browse further)