mirror of
https://github.com/go-sylixos/elvish.git
synced 2024-12-05 03:17:50 +08:00
d0be34c227
This has created a lot of //go:build lines.
16 lines
413 B
Go
16 lines
413 B
Go
//go:build !windows && !plan9 && !js
|
|
// +build !windows,!plan9,!js
|
|
|
|
package eval_test
|
|
|
|
import (
|
|
"syscall"
|
|
)
|
|
|
|
func exitWaitStatus(exit uint32) syscall.WaitStatus {
|
|
// The exit<<8 is gross but I can't find any exported symbols that would
|
|
// allow us to construct WaitStatus. So assume legacy UNIX encoding
|
|
// for a process that exits normally; i.e., not due to a signal.
|
|
return syscall.WaitStatus(exit << 8)
|
|
}
|