Add --disable-thread-support to one flock-build variation.
One more lock-while-init in lib/isc/task.c to quiet lock analysis.
bk: 4d8162fa6fNkiDboogSYFlmTKsKafw
+* [Bug 1848] ntpd 4.2.7p139 --disable-thread-support does not compile.
+* Add --disable-thread-support to one flock-build variation.
+* One more lock-while-init in lib/isc/task.c to quiet lock analysis.
(4.2.7p139) 2011/03/16 Released by Harlan Stenn <stenn@ntp.org>
* [Bug 1848] make check ntpd --saveconfigquit clutters syslog.
(4.2.7p138) 2011/03/08 Released by Harlan Stenn <stenn@ntp.org>
ssh $i "cd $c_d ; ./build $SIG $PARSE $STD $BUILD_ARGS" &
ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --disable-debugging $BUILD_ARGS" &
ssh $i "cd $c_d ; ./build $SIG $PARSE $STD --without-crypto $BUILD_ARGS" &
- ssh $i "cd $c_d ; ./build $SIG $STD --disable-all-clocks --disable-autokey --without-sntp $BUILD_ARGS" &
+ ssh $i "cd $c_d ; ./build $SIG $STD --disable-all-clocks --disable-autokey --without-sntp --disable-thread-support $BUILD_ARGS" &
;;
1)
cat > .flockbuild-$i-$SIG <<-ENDQUOT
echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
[ 0 -lt \`expr \$COUNT % $PARALLEL_BUILDS\` ] || wait
- ./build $SIG $STD --disable-all-clocks --disable-autokey --without-sntp $BUILD_ARGS &
+ ./build $SIG $STD --disable-all-clocks --disable-autokey --without-sntp --disable-thread-support $BUILD_ARGS &
COUNT=\`expr \$COUNT + 1\`
echo \`date -u '+%H:%M:%S'\` $i started build \$COUNT of 4
isc_mem_put(manager->mctx, task, sizeof(*task));
return (result);
}
+ LOCK(&manager->lock);
LOCK(&task->lock); /* helps coverity analysis noise ratio */
task->manager = manager;
task->state = task_state_idle;
INIT_LINK(task, link);
INIT_LINK(task, ready_link);
UNLOCK(&task->lock);
+ UNLOCK(&manager->lock);
exiting = ISC_FALSE;
LOCK(&manager->lock);
* and it's still open, there's nothing to do here.
*/
if (syslog_file != NULL && syslog_fname != NULL &&
- (log_fname == syslog_fname ||
- 0 == strcmp(syslog_fname, log_fname)))
+ 0 == strcmp(syslog_fname, log_fname))
return 0;
if (0 == strcmp(log_fname, "stderr")) {
fileno(syslog_file) != fileno(new_file))
fclose(syslog_file);
syslog_file = new_file;
- if (log_fname != syslog_abs_fname) {
+ if (log_fname == syslog_abs_fname) {
+ free(abs_fname);
+ } else {
if (syslog_abs_fname != NULL &&
syslog_abs_fname != syslog_fname)
free(syslog_abs_fname);
signal_no_reset(SIGPOLL, SIG_DFL);
#endif
signal_no_reset(SIGHUP, worker_sighup);
- init_logging("ntp_intres", 0, NULL, FALSE);
- setup_logfile(NULL, NULL);
+ init_logging("ntp_intres", 0, FALSE);
+ setup_logfile(NULL);
/*
* And now back to the portable code