/*
* All sockets: add the FD to the event handler.
*/
- if (!fr_event_fd_insert(el, 0, this->fd,
- event_socket_handler, this)) {
- ERROR("Failed adding event handler for socket: %s", fr_strerror());
- fr_exit(1);
+ if (fr_event_fd_insert(el, 0, this->fd,
+ event_socket_handler, this)) {
+ this->status = RAD_LISTEN_STATUS_KNOWN;
+ return 1;
}
- this->status = RAD_LISTEN_STATUS_KNOWN;
- return 1;
+ ERROR("Failed adding event handler for socket: %s", fr_strerror());
+ this->status = RAD_LISTEN_STATUS_REMOVE_NOW;
} /* end of INIT */
#ifdef WITH_TCP