]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
signal the semaphore once started
authorAlan T. DeKok <aland@freeradius.org>
Tue, 17 Jan 2017 16:22:30 +0000 (11:22 -0500)
committerAlan T. DeKok <aland@freeradius.org>
Tue, 17 Jan 2017 16:22:30 +0000 (11:22 -0500)
src/util/schedule.c

index 2783d503f4ee4bf6de34d9be93920918a25cbff4..70451de0f7968e0244b4edb18d5ebb375f8bb285 100644 (file)
@@ -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.
         *