aboutsummaryrefslogtreecommitdiffstats
path: root/scd/scdaemon.c
diff options
context:
space:
mode:
Diffstat (limited to 'scd/scdaemon.c')
-rw-r--r--scd/scdaemon.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/scd/scdaemon.c b/scd/scdaemon.c
index 88f393bb1..0fefbd960 100644
--- a/scd/scdaemon.c
+++ b/scd/scdaemon.c
@@ -936,7 +936,7 @@ ticker_thread (void *dummy_arg)
sigs_ev = NULL;
#endif
- for (;;)
+ while (!shutdown_pending)
{
if (!time_ev)
{
@@ -968,6 +968,7 @@ ticker_thread (void *dummy_arg)
}
pth_event_free (sigs_ev, PTH_FREE_ALL);
+ return NULL;
}
#endif /*USE_GNU_PTH*/
#endif /*!HAVE_OPENSC*/