mirror of
https://github.com/rancher/os.git
synced 2025-09-15 22:49:08 +00:00
Merge pull request #559 from luxas/32bit
Fixed 32-bit issue in power.go
This commit is contained in:
@@ -129,7 +129,7 @@ func Halt() {
|
||||
reboot(syscall.LINUX_REBOOT_CMD_HALT)
|
||||
}
|
||||
|
||||
func reboot(code int) {
|
||||
func reboot(code uint) {
|
||||
err := shutDownContainers()
|
||||
if err != nil {
|
||||
log.Error(err)
|
||||
@@ -137,7 +137,7 @@ func reboot(code int) {
|
||||
|
||||
syscall.Sync()
|
||||
|
||||
err = syscall.Reboot(code)
|
||||
err = syscall.Reboot(int(code))
|
||||
if err != nil {
|
||||
log.Fatal(err)
|
||||
}
|
||||
|
Reference in New Issue
Block a user