From 05488bfb8f43f12bc0306e03b675d4f415fc6328 Mon Sep 17 00:00:00 2001 From: Ophestra Date: Thu, 23 Oct 2025 23:19:55 +0900 Subject: hst/instance: store priv side pid This can receive signals, so is more useful to the caller. Signed-off-by: Ophestra --- hst/instance.go | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) (limited to 'hst/instance.go') diff --git a/hst/instance.go b/hst/instance.go index 5d15df6b..e2ad5a57 100644 --- a/hst/instance.go +++ b/hst/instance.go @@ -74,8 +74,11 @@ func (a *ID) UnmarshalText(text []byte) error { type State struct { // Unique instance id, created by [NewInstanceID]. ID ID `json:"instance"` - // Shim process pid. Runs as the target user. + // Monitoring process pid. Runs as the priv user. PID int `json:"pid"` + // Shim process pid. Runs as the target user. + ShimPID int `json:"shim_pid"` + // Configuration used to start the container. Config *Config `json:"config"` -- cgit v1.3.1