mirror of
https://github.com/nestriness/nestri.git
synced 2026-11-03 14:12:39 +02:00
Wine setsid's its processes, so stopping a launch by session left wineserver, explorer.exe and the game running with their window open. Each launch is now put in cgroup /sys/fs/cgroup/nestri-launch-<id> before exec; stop is SIGTERM to its members, then cgroup.kill after the grace, and the launch ends when the cgroup is empty. Without cgroup v2 the members are the session plus every process whose environment carries NESTRI_LAUNCH_ID. cgroup2 is mounted at /sys/fs/cgroup early in boot.