Skip to content

Commit

Permalink
Merge pull request #8 from gtxaspec/master
Browse files Browse the repository at this point in the history
reboot doesn't work; fix pthread
  • Loading branch information
roleoroleo authored Jun 8, 2024
2 parents d09ad9d + a0e4dfe commit 49a8c07
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion device_service.c
Original file line number Diff line number Diff line change
Expand Up @@ -225,7 +225,7 @@ int device_system_reboot()
sleep(1);

pthread_create(&reboot_pthread, NULL, reboot_thread, NULL);
pthread_detach(reboot_pthread);
pthread_join(reboot_pthread, NULL);

return ret;
}
Expand Down

0 comments on commit 49a8c07

Please sign in to comment.