diff options
Diffstat (limited to 'btasktd.c')
| -rw-r--r-- | btasktd.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -170,6 +170,7 @@ handle_accept(struct btasktd *this) if (-1 == idx) { send_response_code(fd, CODE_503_SERVICE_UNAVAILABLE); close(fd); + return; } this->users[idx].fd = fd; this->users[idx].bi = 0; @@ -387,6 +388,7 @@ main(int argc, char **argv) if (EINTR == errno) { /* signal handler called */ if (SIGINT == last_sig) { + FD_ZERO(&readfds); bye_all_clients(&server); break; } |
