ircd: add missing sslproc function ssld_foreach_info()
Iterate through the ssl daemons and report their status.
This commit is contained in:
parent
d4b074a771
commit
9c98c1f866
1 changed files with 14 additions and 0 deletions
|
@ -936,6 +936,20 @@ get_ssld_count(void)
|
||||||
return ssld_count;
|
return ssld_count;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
void
|
||||||
|
ssld_foreach_info(void (*func)(void *data, pid_t pid, int cli_count, enum ssld_status status), void *data)
|
||||||
|
{
|
||||||
|
rb_dlink_node *ptr, *next;
|
||||||
|
ssl_ctl_t *ctl;
|
||||||
|
RB_DLINK_FOREACH_SAFE(ptr, next, ssl_daemons.head)
|
||||||
|
{
|
||||||
|
ctl = ptr->data;
|
||||||
|
func(data, ctl->pid, ctl->cli_count,
|
||||||
|
ctl->dead ? SSLD_DEAD :
|
||||||
|
(ctl->shutdown ? SSLD_SHUTDOWN : SSLD_ACTIVE));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
void
|
void
|
||||||
init_ssld(void)
|
init_ssld(void)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Reference in a new issue