Commit message (Collapse) | Author | Age | Files | Lines | |
---|---|---|---|---|---|
* | util.signal: Fail signalfd() if unable to change signal mask | Kim Alvefur | 2024-02-28 | 1 | -1/+4 |
| | | | | | By aborting early, the failure should be brought to the attention somehow. | ||||
* | util.signal: Wrap signalfd in an userdatum for gc handling etc | Kim Alvefur | 2024-02-24 | 1 | -8/+61 |
| | |||||
* | util.signal: Add support for signalfd(2) on Linux | Kim Alvefur | 2024-02-24 | 1 | -0/+34 |
| | | | | | | | | | signalfd allows handling signal events using the same method as sockets, via file descriptors. Thus all signal dispatch can go through the same main event loop as everything else, removing need for thread-scary signal handling where execution would just jump to the signal handler regardless of the state of Lua, and needing to keep track of Lua states/threads. | ||||
* | util: Add compat for prosody module name change to C sources | Kim Alvefur | 2023-03-17 | 1 | -1/+4 |
| | |||||
* | util-src: Remove Lua 5.1 compat macros | Kim Alvefur | 2022-07-01 | 1 | -5/+0 |
| | | | | Part of #1600 | ||||
* | util.pposix,signal: Pass around various OS numbers as integers [Lua 5.3] | Kim Alvefur | 2020-05-04 | 1 | -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 everywhere | Emmanuel Gil Peyrot | 2019-12-01 | 1 | -2/+2 |
| | |||||
* | pposix, signal: Ignore unused arguments. | Emmanuel Gil Peyrot | 2018-08-08 | 1 | -0/+1 |
| | |||||
* | net, pposix, signal: Check for redefined defines, fix warnings. | Emmanuel Gil Peyrot | 2018-08-08 | 1 | -0/+2 |
| | |||||
* | util.signal: Fix loop (fixes #1047) | Kim Alvefur | 2017-11-30 | 1 | -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 Alvefur | 2017-11-14 | 1 | -23/+12 |
| | |||||
* | util.signal: Enable all GNU features, _DEFAULT_SOURCE doesn't have the ↵ | Kim Alvefur | 2017-03-12 | 1 | -1/+1 |
| | | | | desired effect before glibc 2.19 | ||||
* | util.signal: Restore non-standard GNU "default" behaviour of signal(2) | Kim Alvefur | 2017-03-11 | 1 | -1/+1 |
| | |||||
* | util.pposix, configure: Move _GNU_SOURCE macro into source files | Kim Alvefur | 2017-03-01 | 1 | -0/+2 |
| | |||||
* | util-src/*.c: Attach pointer * to name instead of type | Kim Alvefur | 2017-02-12 | 1 | -11/+11 |
| | |||||
* | util-src: Make C modules assert that the Lua runtime matches what it was ↵ | Kim Alvefur | 2017-01-08 | 1 | -0/+3 |
| | | | | compiled for | ||||
* | util-src/*.c: Invert Lua 5.2 compat to be 5.2+ by default and a macro to ↵ | Kim Alvefur | 2015-04-26 | 1 | -3/+3 |
| | | | | support 5.1 | ||||
* | util-src/*.c: Per convention call luaL_error() as argument to return | Florian Zeitz | 2015-04-03 | 1 | -3/+4 |
| | |||||
* | util-src/*.c: astyle --indent=tab --brackets=attach --indent-switches ↵ | Kim Alvefur | 2015-04-03 | 1 | -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.2 | Kim Alvefur | 2014-09-17 | 1 | -0/+4 |
| | |||||
* | util-src/*.c: Use the more concise lua_setfield | Kim Alvefur | 2014-09-17 | 1 | -1/+1 |
| | |||||
* | util-src/*.c: Don't create globals when loaded | Kim Alvefur | 2014-09-16 | 1 | -1/+2 |
| | |||||
* | util.signal: Moved a variable declaration to the top of a function, for ANSI ↵ | Waqas Hussain | 2010-06-20 | 1 | -1/+1 |
| | | | | C compliance. | ||||
* | util.signal: Removed #include <sys/param.h>, as it appears unnecessary. | Waqas Hussain | 2010-06-20 | 1 | -4/+0 |
| | |||||
* | util.signal: Make kill() available on OS X (thanks darkrain). | Waqas Hussain | 2010-06-20 | 1 | -3/+3 |
| | |||||
* | util.signal: Make kill() available on OpenBSD, NetBSD (thanks Florob, filip). | Waqas Hussain | 2010-06-15 | 1 | -2/+6 |
| | |||||
* | util.signal: Using stdlib.h instead of malloc.h. | Tobias Markmann | 2010-01-15 | 1 | -1/+1 |
| | |||||
* | util.signal: Restore the old debug hook earlier, just in case we receive ↵ | Matthew Wild | 2010-01-10 | 1 | -2/+3 |
| | | | | another signal between clearing the signal queue and restoring it | ||||
* | util.signal: Update version in header, and author's email | Matthew Wild | 2010-01-10 | 1 | -2/+2 |
| | |||||
* | util.signal: Queue up multiple signals, instead of trampling on the previous ↵ | Matthew Wild | 2010-01-10 | 1 | -20/+44 |
| | | | | debug hook (and never clearing our own) | ||||
* | util.signal: Update header comment for new filename | Matthew Wild | 2009-12-30 | 1 | -1/+1 |
| | |||||
* | util.signal: Make kill() available on Solaris; really fixes #136. | Waqas Hussain | 2009-12-09 | 1 | -1/+1 |
| | |||||
* | util-src/Makefile: Clean up makefile, rename lsignal.c to signal.c | Brian Cully | 2009-12-04 | 1 | -0/+387 |