Skip to content

Commit

Permalink
fixup! native: allow for native to be resetable via SIGUSR1
Browse files Browse the repository at this point in the history
  • Loading branch information
miri64 committed Oct 20, 2019
1 parent db515b8 commit 943fd68
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions cpu/native/startup.c
Original file line number Diff line number Diff line change
Expand Up @@ -586,8 +586,8 @@ __attribute__((constructor)) static void startup(int argc, char **argv, char **e
periph_init();
board_init();

/* should not errro as SIGUSR is a valid error code and EINVAL is the only
* specified error code => don't check retirn value */
/* should not error as SIGUSR is a valid error code and EINVAL is the only
* specified error code => don't check return value */
signal(SIGUSR1, reset_handler);

puts("RIOT native hardware initialization complete.\n");
Expand Down

0 comments on commit 943fd68

Please sign in to comment.