aboutsummaryrefslogtreecommitdiffhomepage
path: root/internal
diff options
context:
space:
mode:
authorOphestra <cat@gensokyo.uk>2025-10-16 00:27:00 +0900
committerOphestra <cat@gensokyo.uk>2025-10-16 00:27:00 +0900
commit425421d9b1641036d300dc965e597ec6c7648537 (patch)
treeba983b29cf32ecc9d4ae6306f96935d9742af45b /internal
parent5e0f15d76b876a039d94dcd4c628cc38dc02a698 (diff)
hst/container: rename constants
The shim is an implementation detail and should not be mentioned in the API. Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'internal')
-rw-r--r--internal/app/shim.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/internal/app/shim.go b/internal/app/shim.go
index 992215fb..69028165 100644
--- a/internal/app/shim.go
+++ b/internal/app/shim.go
@@ -128,12 +128,12 @@ func ShimMain() {
// setup has not completed, terminate immediately
msg.Resume()
- os.Exit(hst.ShimExitRequest)
+ os.Exit(hst.ExitRequest)
return
case 1: // got SIGCONT after adoption: monitor died before delivering signal
msg.BeforeExit()
- os.Exit(hst.ShimExitOrphan)
+ os.Exit(hst.ExitOrphan)
return
case 2: // unreachable
@@ -169,7 +169,7 @@ func ShimMain() {
if err := z.Start(); err != nil {
printMessageError("cannot start container:", err)
- os.Exit(hst.ShimExitFailure)
+ os.Exit(hst.ExitFailure)
}
if err := z.Serve(); err != nil {
printMessageError("cannot configure container:", err)
@@ -186,7 +186,7 @@ func ShimMain() {
var exitError *exec.ExitError
if !errors.As(err, &exitError) {
if errors.Is(err, context.Canceled) {
- os.Exit(hst.ShimExitCancel)
+ os.Exit(hst.ExitCancel)
}
log.Printf("wait: %v", err)
os.Exit(127)