diff options
author | Fabricio Voznika <fvoznika@google.com> | 2020-04-16 11:48:14 -0700 |
---|---|---|
committer | gVisor bot <gvisor-bot@google.com> | 2020-04-16 11:49:27 -0700 |
commit | 28399818fc1e5d294cc93ddd4a1ac7e31c375fbf (patch) | |
tree | 950c2921a14ee5547735e767e48048749f0685cb /pkg/sentry/kernel/task_run.go | |
parent | 09c7e3f6e497f4ae267772e7357763ac7c18659f (diff) |
Make ExtractErrno a function
PiperOrigin-RevId: 306891171
Diffstat (limited to 'pkg/sentry/kernel/task_run.go')
-rw-r--r-- | pkg/sentry/kernel/task_run.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pkg/sentry/kernel/task_run.go b/pkg/sentry/kernel/task_run.go index 799cbcd93..2ba8d7e63 100644 --- a/pkg/sentry/kernel/task_run.go +++ b/pkg/sentry/kernel/task_run.go @@ -353,7 +353,7 @@ func (app *runApp) execute(t *Task) taskRunState { default: // What happened? Can't continue. t.Warningf("Unexpected SwitchToApp error: %v", err) - t.PrepareExit(ExitStatus{Code: t.ExtractErrno(err, -1)}) + t.PrepareExit(ExitStatus{Code: ExtractErrno(err, -1)}) return (*runExit)(nil) } } |