Hi, > I find stashing error messages for later printing rather awkward. Do > you provide space for one fixed-sized message? Or arbitrary length? > Arbitrary number of messages? Once you start to malloc(), you get to > worry about free()... Meh. Arbitrary length. See attached patch. > I'd rather use the global or thread-local state to hold the sink for the > messages, then send the messages there as we make them. No memory > management worries. i.e. like config_error() in net.c? What I don't like there is that the error handling policy (monitor -> continue, otherwise exit) is in the error printing function. IMHO it is the job of the caller to decide how to handle an error (exit, ignore, pass up, whatever). cheers, Gerd