aboutsummaryrefslogtreecommitdiffstats
path: root/util-src/signal.c
Commit message (Collapse)AuthorAgeFilesLines
* util: Add compat for prosody module name change to C sourcesKim Alvefur2023-03-171-1/+4
|
* util-src: Remove Lua 5.1 compat macrosKim Alvefur2022-07-011-5/+0
| | | | Part of #1600
* util.pposix,signal: Pass around various OS numbers as integers [Lua 5.3]Kim Alvefur2020-05-041-21/+24
| | | | | | | Passing around PIDs, UIDs etc as integers makes it more sane in Lua 5.3. Getting 1234.0 as PID is silly. Shouldn't change any behavior as these are all integers on the C side and the integral floats are accepted as integers when passed back from Lua into C.
* util.*.c: Add static qualifiers everywhereEmmanuel Gil Peyrot2019-12-011-2/+2
|
* pposix, signal: Ignore unused arguments.Emmanuel Gil Peyrot2018-08-081-0/+1
|
* net, pposix, signal: Check for redefined defines, fix warnings.Emmanuel Gil Peyrot2018-08-081-0/+2
|
* util.signal: Fix loop (fixes #1047)Kim Alvefur2017-11-301-2/+2
| | | | | A pre-commit version probably started with i = nsig and counted down, then an incomplete change to counting up was done
* util.signal: Use a static array to keep track of pending signals (fixes #1029)Kim Alvefur2017-11-141-23/+12
|
* util.signal: Enable all GNU features, _DEFAULT_SOURCE doesn't have the ↵Kim Alvefur2017-03-121-1/+1
| | | | desired effect before glibc 2.19
* util.signal: Restore non-standard GNU "default" behaviour of signal(2)Kim Alvefur2017-03-111-1/+1
|
* util.pposix, configure: Move _GNU_SOURCE macro into source filesKim Alvefur2017-03-011-0/+2
|
* util-src/*.c: Attach pointer * to name instead of typeKim Alvefur2017-02-121-11/+11
|
* util-src: Make C modules assert that the Lua runtime matches what it was ↵Kim Alvefur2017-01-081-0/+3
| | | | compiled for
* util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to ↵Kim Alvefur2015-04-261-3/+3
| | | | support 5.1
* util-src/*.c: Per convention call luaL_error() as argument to returnFlorian Zeitz2015-04-031-3/+4
|
* util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches ↵Kim Alvefur2015-04-031-252/+249
| | | | --break-blocks --pad-oper --unpad-paren --add-brackets --align-pointer=type --lineend=linux
* util-src/*.c: Add macro for compiling with Lua 5.2Kim Alvefur2014-09-171-0/+4
|
* util-src/*.c: Use the more concise lua_setfieldKim Alvefur2014-09-171-1/+1
|
* util-src/*.c: Don't create globals when loadedKim Alvefur2014-09-161-1/+2
|
* util.signal: Moved a variable declaration to the top of a function, for ANSI ↵Waqas Hussain2010-06-201-1/+1
| | | | C compliance.
* util.signal: Removed #include <sys/param.h>, as it appears unnecessary.Waqas Hussain2010-06-201-4/+0
|
* util.signal: Make kill() available on OS X (thanks darkrain).Waqas Hussain2010-06-201-3/+3
|
* util.signal: Make kill() available on OpenBSD, NetBSD (thanks Florob, filip).Waqas Hussain2010-06-151-2/+6
|
* util.signal: Using stdlib.h instead of malloc.h.Tobias Markmann2010-01-151-1/+1
|
* util.signal: Restore the old debug hook earlier, just in case we receive ↵Matthew Wild2010-01-101-2/+3
| | | | another signal between clearing the signal queue and restoring it
* util.signal: Update version in header, and author's emailMatthew Wild2010-01-101-2/+2
|
* util.signal: Queue up multiple signals, instead of trampling on the previous ↵Matthew Wild2010-01-101-20/+44
| | | | debug hook (and never clearing our own)
* util.signal: Update header comment for new filenameMatthew Wild2009-12-301-1/+1
|
* util.signal: Make kill() available on Solaris; really fixes #136.Waqas Hussain2009-12-091-1/+1
|
* util-src/Makefile: Clean up makefile, rename lsignal.c to signal.cBrian Cully2009-12-041-0/+387