Skip to content

Commit

Permalink
update comments
Browse files Browse the repository at this point in the history
  • Loading branch information
a8jan committed Feb 3, 2024
1 parent 248094e commit 272c2a8
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/main.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -103,13 +103,13 @@ void sighandler(int signum)
{
#if !defined(_WIN32)
if (signum == SIGHUP)
exit_for_restart = 1; // gracefull shutdown (with restart by run-fujinet script)
exit_for_restart = 1; // graceful shutdown (with restart by run-fujinet script)
if (signum == SIGUSR1)
_exit(EXIT_AND_RESTART); // not gracefull shutdown (with restart by run-fujinet script)
_exit(EXIT_AND_RESTART); // forced exit (with restart by run-fujinet script)
#endif
fn_shutdown = 1 + fn_shutdown;
if (fn_shutdown >= 3)
_exit(EXIT_FAILURE); // emergency exit
_exit(EXIT_FAILURE); // emergency exit after any 3 signals
}

#endif // !ESP_PLATFORM
Expand Down

0 comments on commit 272c2a8

Please sign in to comment.