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:
parent
b5f2f44fcc
commit
c9e19364d7
|
@ -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)
|
||||
|
|
Loading…
Reference in New Issue