aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs6
Commit message (Collapse)AuthorAgeFilesLines
* Define S6_FILETYPE_TEMPLATELaurent Bercot2026-06-141-1/+1
|
* Add s6-svc -l and reload-signalLaurent Bercot2026-06-091-0/+1
|
* And don't assume it's 0-terminatedLaurent Bercot2026-05-231-1/+1
|
* Better stralloc contract in s6_supervise_unlink_namesLaurent Bercot2026-05-231-1/+1
| | | | | | Assume sa->len is 0 at invocation of registerit(). Reset it to 0 before exiting it. So sa is always available as scratch space.
* Add flag-timeout-killpg to the list of known filesLaurent Bercot2026-04-231-0/+1
|
* Add s6-notify-fd-from-socket and s6-notify-socket-from-fdLaurent Bercot2026-04-091-1/+1
| | | | | Also add .gitkeep files, remove old include-local/s6lockd.h, update a little bit of doc, make s6-ftrigrd pipe-only
* More fixes, ftrigr_string addition, doc updateLaurent Bercot2026-03-185-24/+7
|
* s6-svscan trivial fix; s6-svunlink bugfix; start prep for 2.15.0.0Laurent Bercot2026-03-171-4/+10
| | | | | | | | s6_supervise_unlink_names can spawn a s6-ftrigrd to wait for an 'x' event. This creates a fifodir under $scandir/$name/event. But after the unlink, $scandir/$name doesn't exist anymore, so s6-ftrigrd fails to clean it up. To fix that, we subscribe with the realpath of $scandir/$name instead.
* Refactor ftrig using sass; clean up API a bit, update its usersLaurent Bercot2026-03-1629-603/+352
|
* Remove mentions to s6lock from doc and code.Laurent Bercot2026-02-052-6/+0
| | | | | | s6lock has been deleted in the previous major update. There were still traces of it in the doc, and lock.h still existed, although non-functional. Clean all that up.
* Invoke s6-ftrigrd with a full environmentLaurent Bercot2026-01-201-2/+3
| | | | That helps when LD_LIBRARY_PATH is necessary.
* POSIX guarantees that pid == pgid for session leaders!Laurent Bercot2025-11-072-10/+9
|
* pkg-config support, templated configure, etc.Laurent Bercot2025-04-271-0/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Don't step on POSIXLaurent Bercot2024-11-101-3/+3
| | | | | | remove() is in stdio.h, which bionic pulls. lol @ bionic. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* ... with the correct typeLaurent Bercot2024-10-041-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add flag-newpidns to the servicedir file listLaurent Bercot2024-10-041-0/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Actual fix for keycheck_ip6Laurent Bercot2024-10-021-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Without the bitarray depLaurent Bercot2024-10-011-1/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Tentative fix for keycheck_ip6Laurent Bercot2024-10-011-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add debug instruction in keycheck_ip6Laurent Bercot2024-10-011-0/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Tentative fix for s6_fdholder_setdump()Laurent Bercot2024-06-201-32/+34
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add process group support to s6-superviseLaurent Bercot2024-05-072-7/+10
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* this is why I hate free's signatureLaurent Bercot2024-05-051-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* s6-ftrigrd: don't have in-object pointers when reallocingLaurent Bercot2024-05-051-6/+15
| | | | | | | | | | | | | | Make all pointers out-of-object, even if that means an additional alloc. Objects that move need to be flat, so in the absence of a proper multi-object storage structure, deep allocs is the only solution. The alternative is to use gensetdyn so objects don't move, but here we already have a ftrig1_t, a stralloc and a regex_t making deep allocs, so who cares about one more - the overhead of gensetdyn is probably more expensive. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Restore cleanups in s6-ftrigrd; fix an old bug and a new bugLaurent Bercot2024-05-033-13/+46
| | | | | | | | ftrigw_clean() didn't clean properly. ftrig1_make() didn't give enough perms to the fifo, notification could fail in certain cases. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* bugfix: bad length computation in s6-ftrigrdLaurent Bercot2024-04-251-8/+10
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Don't limit the amount of fifodirs s6-ftrigrd can listen toLaurent Bercot2024-04-181-60/+39
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Remove s6_ucspiserver_spawnLaurent Bercot2023-09-122-19/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Better s6-setlock; delete the s6lock subsystemLaurent Bercot2023-09-1115-610/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Adapt to skalibs-2.14Laurent Bercot2023-09-092-102/+9
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* child_spawn_workaround is public nowLaurent Bercot2023-09-081-4/+0
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add ucspiserver.h, support posix_spawn() in s6-ipcserverdLaurent Bercot2023-09-082-0/+117
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Use open safe wrappers; remove debug boilerplateLaurent Bercot2023-07-061-4/+4
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Simplify selfpipe managementLaurent Bercot2023-04-071-4/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Copy the new template, not the old one!Laurent Bercot2023-02-081-10/+15
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add s6_servicedir_instances_recreate_offline functionsLaurent Bercot2023-02-083-0/+85
| | | | | | | This will be used for more transparent instance management in s6-rc. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.11.2.1, move template location, change file listLaurent Bercot2023-01-311-2/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add s6-instance-list, s6-instance-status (no doc yet)Laurent Bercot2023-01-103-3/+27
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Next batch of fixesLaurent Bercot2023-01-091-0/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* First batch of fixes, more to come >.>Laurent Bercot2023-01-091-10/+9
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add instances implementation (still needs testing)Laurent Bercot2023-01-091-1/+2
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Refactor libs6auto, add s6-instance-maker (untested)Laurent Bercot2022-12-237-54/+198
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Adapt to skalibs-2.13.0.0Laurent Bercot2022-11-295-5/+5
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Factor s6_auto_write_logrun into a new libs6autoLaurent Bercot2022-08-202-0/+63
| | | | | | libs6auto distinct from libs6 because of execline dep. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add s6_servicedir_file_listLaurent Bercot2022-08-182-0/+21
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Fix allread errno managementLaurent Bercot2022-07-181-0/+4
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.11.1.1; adapt to skalibs-2.12.0.0Laurent Bercot2022-06-082-2/+7
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Ensure proper detection of s6-svscan not running in all casesLaurent Bercot2021-09-171-0/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Pass errno as unsigned charLaurent Bercot2021-09-0210-17/+17
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* s6-svlink, s6-svunlink, .h changesLaurent Bercot2021-08-3041-48/+161
| | | | | | | | | Renamed from s6-svdir-(un)link. Doc added. Full functionality added. Still need to be tested. Unrelated: .h names simplified. Signed-off-by: Laurent Bercot <ska@appnovation.com>