diff options
Diffstat (limited to 'pkg/osutil/osutil_noappengine.go')
| -rw-r--r-- | pkg/osutil/osutil_noappengine.go | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/pkg/osutil/osutil_noappengine.go b/pkg/osutil/osutil_noappengine.go new file mode 100644 index 000000000..4c822db5b --- /dev/null +++ b/pkg/osutil/osutil_noappengine.go @@ -0,0 +1,17 @@ +// Copyright 2020 syzkaller project authors. All rights reserved. +// Use of this source code is governed by Apache 2 LICENSE that can be found in the LICENSE file. + +// +build !appengine + +package osutil + +import ( + "os/exec" +) + +func exitCode(err error) int { + if exitError, ok := err.(*exec.ExitError); ok { + return exitError.ProcessState.ExitCode() + } + return 0 +} |
