Switched from _exit to exit in the sigintHandler.

Not sure why I ended up with _exit. Perhaps an unlucky keypress, but it's the incorrect function to use in this case.
This commit is contained in:
Barra Ó Catháin 2023-04-11 11:56:57 +01:00
parent b5f2f44fcc
commit c9e19364d7
1 changed files with 1 additions and 1 deletions

View File

@ -32,7 +32,7 @@ typedef struct sockaddr sockaddr;
void sigintHandler(int signal)
{
printf("Caught signal %d.\n", signal);
_exit(EXIT_SUCCESS);
exit(EXIT_SUCCESS);
}
int main(int argc, char ** argv)