aboutsummaryrefslogtreecommitdiffhomepage
path: root/hst
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-23 23:19:55 +0900
committerOphestra <cat@gensokyo.uk>2025-10-23 23:19:55 +0900
commit05488bfb8f43f12bc0306e03b675d4f415fc6328 (patch)
tree63897f4bcb629e3326da36377bc04ca91e4e57f8 /hst
parentdd94818f20c7a37bdd7c6129551759db1b09b65e (diff)
hst/instance: store priv side pid
This can receive signals, so is more useful to the caller. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'hst')
-rw-r--r--hst/instance.go5
1 files changed, 4 insertions, 1 deletions
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"`