Skip to content

Commit

Permalink
Merge pull request #392 from KeithMoyer/patch-1
Browse files Browse the repository at this point in the history
Handle launcher exit code checking during deferral evaluation
  • Loading branch information
jkl73 authored Nov 22, 2023
2 parents 135086f + 79bdb20 commit b9d67df
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion launcher/launcher/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,9 @@ func main() {
logger = log.Default()
// log.Default() outputs to stderr; change to stdout.
log.SetOutput(os.Stdout)
defer os.Exit(exitCode)
defer func() {
os.Exit(exitCode)
}()

serialConsole, err := os.OpenFile("/dev/console", os.O_WRONLY, 0)
if err != nil {
Expand Down

0 comments on commit b9d67df

Please sign in to comment.