Explorar o código

fix stubbed-out reboot call

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

+ 2 - 3
src/linux/reboot.c

@@ -1,8 +1,7 @@
 #include <sys/reboot.h>
-#include <errno.h>
+#include "syscall.h"
 
 int reboot(int type)
 {
-	errno = ENOSYS;
-	return -1;
+	return syscall(SYS_reboot, type);
 }