mirror of
https://github.com/matrix-construct/construct
synced 2024-12-30 17:34:04 +01:00
authd: don't try to do anything on exit, it's too precarious
This commit is contained in:
parent
5a775221d2
commit
9f7f75295c
1 changed files with 2 additions and 8 deletions
|
@ -187,12 +187,6 @@ setup_signals(void)
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
do_exit(void)
|
|
||||||
{
|
|
||||||
destroy_providers();
|
|
||||||
}
|
|
||||||
|
|
||||||
int
|
int
|
||||||
main(int argc, char *argv[])
|
main(int argc, char *argv[])
|
||||||
{
|
{
|
||||||
|
@ -214,9 +208,9 @@ main(int argc, char *argv[])
|
||||||
init_providers();
|
init_providers();
|
||||||
rb_init_prng(NULL, RB_PRNG_DEFAULT);
|
rb_init_prng(NULL, RB_PRNG_DEFAULT);
|
||||||
|
|
||||||
atexit(do_exit);
|
|
||||||
|
|
||||||
rb_helper_loop(authd_helper, 0);
|
rb_helper_loop(authd_helper, 0);
|
||||||
|
|
||||||
|
destroy_providers();
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue