From: Alan T. DeKok Date: Tue, 17 Jan 2017 16:22:30 +0000 (-0500) Subject: signal the semaphore once started X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=418f6866c2ef17d5bddea6c9fecce3f696b7f588;p=thirdparty%2Ffreeradius-server.git signal the semaphore once started --- diff --git a/src/util/schedule.c b/src/util/schedule.c index 2783d503f4e..70451de0f79 100644 --- a/src/util/schedule.c +++ b/src/util/schedule.c @@ -222,6 +222,11 @@ static void *fr_schedule_worker_thread(void *arg) sc->num_workers++; PTHREAD_MUTEX_UNLOCK(&sc->mutex); + /* + * Tell the originator that the thread has started. + */ + sem_post(&sc->semaphore); + /* * Do all of the work. *