From 9f7f75295c4df2369aa979182a591ec6e910c79d Mon Sep 17 00:00:00 2001 From: Elizabeth Myers Date: Sat, 30 Apr 2016 00:46:18 -0500 Subject: [PATCH] authd: don't try to do anything on exit, it's too precarious --- authd/authd.c | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/authd/authd.c b/authd/authd.c index 08cf8e79..1fa9f3c9 100644 --- a/authd/authd.c +++ b/authd/authd.c @@ -187,12 +187,6 @@ setup_signals(void) #endif } -static void -do_exit(void) -{ - destroy_providers(); -} - int main(int argc, char *argv[]) { @@ -214,9 +208,9 @@ main(int argc, char *argv[]) init_providers(); rb_init_prng(NULL, RB_PRNG_DEFAULT); - atexit(do_exit); - rb_helper_loop(authd_helper, 0); + destroy_providers(); + return 0; }