aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal/app/system.go
diff options
context:
space:
mode:
authorOphestra Umiker <cat@ophivana.moe>2024-10-27 00:46:15 +0900
committerOphestra Umiker <cat@ophivana.moe>2024-10-27 00:46:15 +0900
commit1d6ea8120552665072f5044a004128e7dbbf3a64 (patch)
tree1ea0b9d2f687909cdd5fab3fbf50c473f942e7cf /internal/app/system.go
parentae1a102882103221ef842176dfd8cb1090d5f591 (diff)
shim: user switcher process management struct
This change moves all user switcher and shim management to the shim package and withholds output while shim is alive. This also eliminated all exit scenarios where revert is skipped. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'internal/app/system.go')
-rw-r--r--internal/app/system.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/internal/app/system.go b/internal/app/system.go
index 7ccc2eeb..74b8e611 100644
--- a/internal/app/system.go
+++ b/internal/app/system.go
@@ -22,6 +22,8 @@ type appSealSys struct {
// target user sealed from config
user *user.User
+ needRevert bool
+ saveState bool
*system.I
// protected by upstream mutex