mirror of
https://github.com/matrix-construct/construct
synced 2024-12-27 07:54:05 +01:00
ircd: add missing sslproc function ssld_foreach_info()
Iterate through the ssl daemons and report their status.
This commit is contained in:
parent
15b0093d1f
commit
035d9143bd
2 changed files with 14 additions and 2 deletions
|
@ -937,6 +937,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)
|
||||||
{
|
{
|
||||||
|
|
|
@ -903,9 +903,7 @@ stats_ssld_foreach(void *data, pid_t pid, int cli_count, enum ssld_status status
|
||||||
static void
|
static void
|
||||||
stats_ssld(struct Client *source_p)
|
stats_ssld(struct Client *source_p)
|
||||||
{
|
{
|
||||||
#if 0
|
|
||||||
ssld_foreach_info(stats_ssld_foreach, source_p);
|
ssld_foreach_info(stats_ssld_foreach, source_p);
|
||||||
#endif
|
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
static void
|
||||||
|
|
Loading…
Reference in a new issue