| 879 | |
| 880 | |
| 881 | static int stop_logging() |
| 882 | { |
| 883 | last_error_buf[0]= 0; |
| 884 | if (output_type == OUTPUT_FILE && logfile) |
| 885 | { |
| 886 | logger_close(logfile); |
| 887 | logfile= NULL; |
| 888 | } |
| 889 | else if (output_type == OUTPUT_SYSLOG) |
| 890 | { |
| 891 | closelog(); |
| 892 | } |
| 893 | error_header(); |
| 894 | fprintf(stderr, "logging was stopped.\n"); |
| 895 | is_active= 0; |
| 896 | return 0; |
| 897 | } |
| 898 | |
| 899 | |
| 900 | static void setup_connection_simple(struct connection_info *ci) |
no test coverage detected