Explorar o código

fix broken reboot wrapper (syscall needs extra silly magic arguments...)

Rich Felker %!s(int64=13) %!d(string=hai) anos
pai
achega
c07daf0f2f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/linux/reboot.c

+ 1 - 1
src/linux/reboot.c

@@ -3,5 +3,5 @@
 
 int reboot(int type)
 {
-	return syscall(SYS_reboot, type);
+	return syscall(SYS_reboot, 0xfee1dead, 672274793, type);
 }