aboutsummaryrefslogtreecommitdiffstats
path: root/src/libs6
Commit message (Collapse)AuthorAgeFilesLines
* 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>
* s6-svdir-(un)link fixesLaurent Bercot2021-08-281-1/+1
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Add s6-svdir-link and s6-svdir-unlinkLaurent Bercot2021-08-284-149/+167
| | | | | | Not tested yet; not documented yet; to come soon. Signed-off-by: Laurent Bercot <ska@appnovation.com>
* skalibs-2.11.0.0 API changeLaurent Bercot2021-08-0936-63/+76
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Change to cdb_find_stateLaurent Bercot2021-07-241-2/+3
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Prepare for 2.11.0.0, adapt to skalibs-2.11.0.0 (cdb changes)Laurent Bercot2021-07-237-28/+34
| | | | Signed-off-by: Laurent Bercot <ska@appnovation.com>
* Comment typo fixLaurent Bercot2021-05-061-1/+1
|
* Also allow shared locks in s6lockd-helperLaurent Bercot2021-05-044-10/+41
|
* More fixes to s6_supervise_linkLaurent Bercot2020-12-181-12/+15
|
* Only realpath() if a given servicedir is not absoluteLaurent Bercot2020-12-111-3/+10
|
* Add the possibility of down files to s6_supervise_linkLaurent Bercot2020-12-102-12/+26
|
* bugfix: sarealpath() APILaurent Bercot2020-12-101-1/+1
|
* Use mkptemp2Laurent Bercot2020-12-101-2/+2
|
* Get rid of webipc.hLaurent Bercot2020-12-092-5/+6
|
* Do not use 'scandir' as a variable name, thanks posixLaurent Bercot2020-12-072-21/+21
|
* Fix build with nsss; fix s6_supervise_link() for logged servicesLaurent Bercot2020-12-051-6/+17
|
* Add s6_supervise_link and s6_supervise_unlink for future s6-rc changeLaurent Bercot2020-12-043-0/+171
|
* Big signal/command semantics change to svscan/supervise; add s6-svperms.Laurent Bercot2020-12-041-3/+3
|
* Fix build against skalibs-2.10.0.0Laurent Bercot2020-12-028-159/+25
|
* Fix supervise/svscan startup when the control dir already existsLaurent Bercot2020-11-161-10/+14
|
* Align on new names of skalibs functionsLaurent Bercot2020-10-262-6/+6
|
* Prepare for 2.9.2.1; add dangling symlink supportLaurent Bercot2020-10-262-10/+40
|