You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Both LandJail.Run() and NSJailManager.Run() always returned nil,
discarding the child process exit code. The landjail child also
wrapped exit codes in fmt.Errorf() instead of calling os.Exit().
Changes:
- Add exitcode.Error type to carry exit codes through the error chain
- Fix landjail child to call os.Exit(exitCode), matching nsjail behavior
- Fix both managers to capture child errors via a channel and return
exitcode.Error from Run()
- Fix main.go to extract exitcode.Error before defaulting to os.Exit(1)
- Change NSJailManager.RunChildProcess to return error (was void)
Fixes#190
0 commit comments