Lines Matching defs:log
88 static FILE *log = NULL;
168 if (!log) {
170 if ((log = fopen64(AP_LOG_EXEC, "a")) == NULL) {
172 if ((log = fopen(AP_LOG_EXEC, "a")) == NULL) {
174 fprintf(stderr, "suexec failure: could not open log file\n");
181 fprintf(stderr, "suexec policy violation: see suexec log for more "
188 fprintf(log, "[%d-%.2d-%.2d %.2d:%.2d:%.2d]: ",
192 vfprintf(log, fmt, ap);
194 fflush(log);
487 * Log the transaction here to be sure we have an open log
644 /* Be sure to close the log file so the CGI can't mess with it. */
651 if (log != NULL) {
654 * ask fcntl(2) to set the FD_CLOEXEC flag on the log file,
657 fflush(log);
658 setbuf(log, NULL);
659 if ((fcntl(fileno(log), F_SETFD, FD_CLOEXEC) == -1)) {
666 * dropped privileges and won't be able to reopen the log file.
668 fclose(log);
669 log = NULL;
694 * Oh well, log the failure and error out.