p.c 242 B

1234567891011121314151617
  1. #include <stdio.h>
  2. #include <sys/reboot.h>
  3. #include <sys/types.h>
  4. #include <sys/wait.h>
  5. #include <unistd.h>
  6. int main() {
  7. int pid;
  8. sync();
  9. if((pid=fork()) == 0) {
  10. reboot(0x4321fedc);
  11. _exit(0);
  12. }
  13. waitpid(pid, NULL, 0);
  14. return(0);
  15. }