Skip to content

Commit

Permalink
disable reboot
Browse files Browse the repository at this point in the history
  • Loading branch information
Yoann Sculo committed Jun 24, 2014
1 parent edb945e commit f61439d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions adb/services.c
Original file line number Diff line number Diff line change
Expand Up @@ -193,8 +193,8 @@ void reboot_service(int fd, void *arg)
waitpid(pid, &ret, 0);
}

ret = __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2,
LINUX_REBOOT_CMD_RESTART2, (char *)arg);
// ret = __reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2,
// LINUX_REBOOT_CMD_RESTART2, (char *)arg);
if (ret < 0) {
snprintf(buf, sizeof(buf), "reboot failed: %s\n", strerror(errno));
writex(fd, buf, strlen(buf));
Expand Down

0 comments on commit f61439d

Please sign in to comment.