RADIUS_PACKET *packet, REQUEST **prequest,
RADCLIENT *client);
REQUEST *received_proxy_response(RADIUS_PACKET *packet);
-void event_new_fd(rad_listen_t *listener);
+int event_new_fd(rad_listen_t *listener);
/* evaluate.c */
int radius_evaluate_condition(REQUEST *request, int modreturn, int depth,
}
#endif
-void event_new_fd(rad_listen_t *this)
+int event_new_fd(rad_listen_t *this)
{
char buffer[1024];
- if (this->status == RAD_LISTEN_STATUS_KNOWN) return;
+ if (this->status == RAD_LISTEN_STATUS_KNOWN) return 1;
this->print(this, buffer, sizeof(buffer));
this)) {
proxy_no_new_sockets = TRUE;
- listen_free(&this);
PTHREAD_MUTEX_UNLOCK(&proxy_mutex);
/*
*/
radlog(L_ERR, "Failed adding proxy socket: %s",
fr_strerror());
- return;
+ return 0;
}
if (sock->home) {
* Set up the first poll interval.
*/
event_poll_detail(this);
- return;
+ return 1;
}
#endif
FD_MUTEX_UNLOCK(&fd_mutex);
this->status = RAD_LISTEN_STATUS_KNOWN;
- return;
+ return 1;
}
/*
rad_panic("Failed to insert event");
}
- return;
+ return 1;
}
/*
*/
listen_free(&this);
}
+
+ return 1;
}
static void handle_signal_self(int flag)