Browse Source

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

Rich Felker 13 năm trước cách đây
mục cha
commit
c07daf0f2f
1 tập tin đã thay đổi với 1 bổ sung1 xóa
  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);
 }