authd: don't try to do anything on exit, it's too precarious

This commit is contained in:
Elizabeth Myers 2016-04-30 00:46:18 -05:00
parent 5a775221d2
commit 9f7f75295c
No known key found for this signature in database
GPG key ID: 1A10EF78D83E317B

View file

@ -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;
} }