}
if (need_reload) {
+#if HAVE_PTHREAD_H
+ /*
+ * Threads: wait for all threads to stop
+ * processing before re-loading the
+ * config, so we don't pull the rug out
+ * from under them.
+ */
int max_wait = 0;
for(;;) {
/*
sleep(1);
max_wait++;
}
+#endif
if (read_mainconfig(TRUE) < 0) {
exit(1);
}
/*
* Receive the packet.
*/
- if (sig_hup_block != FALSE) {
- continue;
+ if (sig_hup_block) {
+ continue;
}
packet = rad_recv(fd);
if (packet == NULL) {