aboutsummaryrefslogtreecommitdiffstats
path: root/src/libstddjb/selfpipe_trapset.c
Commit message (Collapse)AuthorAgeFilesLines
* Add selfpipe_fd(), refactor selfpipeLaurent Bercot2023-04-071-72/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Better NSIG detection and fixLaurent Bercot2022-09-051-1/+0
| | | | | | | Incredibly enough, OpenBSD defines NSIG correctly, so our workaround was not accurate. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Huge incompatible changes.Laurent Bercot2021-07-281-11/+17
| | | | | | | | | | | | - Obsolete skalibs/environ.h and skalibs/getpeereid.h removed. - rc4 and md5 removed. - All *_t types renamed to avoid treading on POSIX namespace. - subgetopt() renamed to lgetopt(). - signal functions reworked; skasigaction removed; sig_stack removed - Various functions removed: skaoffsetof(), selfpipe_untrap() - New posixplz function: munmap_void. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Explicitly unblock signals when selfpiped without signalfdLaurent Bercot2020-02-261-2/+2
| | | | | | | | | | | | | | | | This is arguably a bugfix, since selfpipe without signalfd relies on signals being actually delivered, and a process may have inherited a nonempty sigprocmask. Also use SIG_BLOCK instead of SIG_SETMASK when using selfpipe_trapset() with signalfd, because we shouldn't unblock signals that may have previously been blocked. This is also arguably a bugfix. This commit is essential for using the version of s6-linux-init that blocks SIGINT before disablecad on kernels without signalfd. Without it, SIGINT never gets unblocked, so it's never delivered to s6-svscan.
* Change SKALIBS_NSIG to SKALIBS_DEFAULT_NSIG and NSIG to SKALIBS_NSIG to ↵Laurent Bercot2017-04-281-2/+2
| | | | accommodate OpenBSD snowflakiness
* Always pair skalibs/nsig.h with skalibs/nonposix.h (and screw NSIG with a ↵Laurent Bercot2017-04-281-6/+9
| | | | chainsaw)
* Fix NSIG definition (max+1 instead of max)Laurent Bercot2017-04-281-2/+2
|
* Types change: big pass on libstddjb and libunixonacidLaurent Bercot2017-02-211-1/+1
| | | | libdatastruct still missing, library still not functional
* initial commit with rc for skalibs-2.0.0.0Laurent Bercot2014-09-181-0/+64