diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-10-23 23:19:55 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-10-23 23:19:55 +0900 |
| commit | 05488bfb8f43f12bc0306e03b675d4f415fc6328 (patch) | |
| tree | 63897f4bcb629e3326da36377bc04ca91e4e57f8 /hst/instance.go | |
| parent | dd94818f20c7a37bdd7c6129551759db1b09b65e (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/instance.go')
| -rw-r--r-- | hst/instance.go | 5 |
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"` |
