From cafed5f23468daf2765655325ebe7d879acdde24 Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Mon, 21 Oct 2024 21:23:56 +0900 Subject: shim: abort setup on failed start and process exit Shim setup listens on a socket in the process share, if shim setup hasn't happened on exit revert will fail. This change makes sure shim setup is aborted on a doomed launch. Signed-off-by: Ophestra Umiker --- internal/app/app.go | 2 ++ 1 file changed, 2 insertions(+) (limited to 'internal/app/app.go') diff --git a/internal/app/app.go b/internal/app/app.go index 5c5e3452..0055dd76 100644 --- a/internal/app/app.go +++ b/internal/app/app.go @@ -24,6 +24,8 @@ type app struct { id *ID // underlying user switcher process cmd *exec.Cmd + // shim setup abort reason and completion + abort chan error // child process related information seal *appSeal // error returned waiting for process -- cgit v1.3.1