>I *think* I got the logit() call right.
FYI, instead of this:
>+ char errormsg[40];
>+ int errorcount=0;
> ....
>+ sprintf(errormsg, "Error when closing retention
>tempfile: %s", strerror(errno));
>+ logit(NSLOG_RUNTIME_ERROR,TRUE,errormsg,errno);
use something like this:
>+ logit(NSLOG_RUNTIME_ERROR,TRUE,
>+ "Error when closing retention tempfile: %s", strerror(errno));
much safer!
This post was automatically imported from historical nagios-devel mailing list archives
Original poster: [email protected]