CVSROOT:        /cvs
Module name:    src
Changes by:     clau...@cvs.openbsd.org 2024/11/21 06:25:01

Modified files:
        usr.sbin/ntpd  : constraint.c 

Log message:
Try to handle the dumpster fire called constraint.c a bit better.

The imsg handling in here is not quite right. It works but more by luck.
- use imsgbuf_read_one (similar code as found in a few other places)
to read the one message we expect.
- do not call imsgbuf_flush() without a child running to read the data.
With large enough requests imsgbuf_flush() may be locked forever since
there is no reader on the other side of the pipe.

OK tb@

Reply via email to