Skip to content

x/sys/unix: Reboot takes int but LINUX_REBOOT_CMD_HALT overflows int #9584

@tv42

Description

@tv42
package main

import "golang.org/x/sys/unix"

func main() {
    unix.Reboot(unix.LINUX_REBOOT_CMD_HALT)
}
$ GOARCH=amd64 go build halt.go 
$ GOARCH=386 go build halt.go 
# command-line-arguments
./halt.go:6: constant 3454992675 overflows int
$ 

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions