Signed-off-by: Demi Marie Obenour <demiobenour@gmail.com> --- host/rootfs/file-list.mk | 1 + host/rootfs/image/etc/s6-rc/weston/finish | 5 +++++ host/rootfs/image/etc/s6-rc/weston/run | 4 ++++ 3 files changed, 10 insertions(+) diff --git a/host/rootfs/file-list.mk b/host/rootfs/file-list.mk index 5403e464966e4946e2089841e9f2f529c0e856a5..2b76b31dad7f73dd83c6a24f94f3ed946988bbea 100644 --- a/host/rootfs/file-list.mk +++ b/host/rootfs/file-list.mk @@ -110,6 +110,7 @@ S6_RC_FILES = \ image/etc/s6-rc/vmm-env/contents.d/systemd-udevd-coldplug \ image/etc/s6-rc/vmm-env/type \ image/etc/s6-rc/weston/dependencies.d/systemd-udevd-coldplug \ + image/etc/s6-rc/weston/finish \ image/etc/s6-rc/weston/notification-fd \ image/etc/s6-rc/weston/run \ image/etc/s6-rc/weston/type diff --git a/host/rootfs/image/etc/s6-rc/weston/finish b/host/rootfs/image/etc/s6-rc/weston/finish new file mode 100755 index 0000000000000000000000000000000000000000..8b63639fb196abfbb703f7ac6dc974f9838124d9 --- /dev/null +++ b/host/rootfs/image/etc/s6-rc/weston/finish @@ -0,0 +1,5 @@ +#!/usr/bin/execlineb -WS3 +# SPDX-FileCopyrightText: 2026 Demi Marie Obenour <demiobenour@gmail.com> +# SPDX-License-Identifier: EUPL-1.2+ + +cgroup-purge $3 diff --git a/host/rootfs/image/etc/s6-rc/weston/run b/host/rootfs/image/etc/s6-rc/weston/run old mode 100644 new mode 100755 index 8b065ee9a535d0a08e9255900c73b88a0c376d4b..2da83bf9e734e786e2ee72349e500331b8a7c335 --- a/host/rootfs/image/etc/s6-rc/weston/run +++ b/host/rootfs/image/etc/s6-rc/weston/run @@ -4,6 +4,10 @@ importas -Siu WAYLAND_DISPLAY +# Use --no-wait because Weston spawns +# child processes that should outlive it. +cgroup-setup --no-wait weston + piperw 4 3 background { fdclose 3 -- 2.55.0