| 626 | unsigned char tmpbuf[8192]; |
| 627 | |
| 628 | void logstdout(struct clientparam * param, const unsigned char *s) { |
| 629 | FILE *log; |
| 630 | |
| 631 | pthread_mutex_lock(&log_mutex); |
| 632 | log = param->srv->stdlog?param->srv->stdlog:conf.stdlog?conf.stdlog:stdout; |
| 633 | dobuf(param, tmpbuf, s, NULL); |
| 634 | if(!param->nolog)if(fprintf(log, "%s\n", tmpbuf) < 0) { |
| 635 | perror("printf()"); |
| 636 | }; |
| 637 | if(log != conf.stdlog)fflush(log); |
| 638 | pthread_mutex_unlock(&log_mutex); |
| 639 | } |
| 640 | #ifndef _WIN32 |
| 641 | void logsyslog(struct clientparam * param, const unsigned char *s) { |
| 642 | |