summaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
authorMichael Adam <obnox@samba.org>2009-12-23 00:30:11 +0100
committerMichael Adam <obnox@samba.org>2009-12-23 00:31:56 +0100
commitc07cd2e44e40196fe810812cfda352fd56c991df (patch)
tree27d659f9e17b9e615549d428b6b9e47ac9389212 /src
parent71a035d619025910bcff350c84fd96eb2d7f2c66 (diff)
Use shutdown_logging() in main().
Michael
Diffstat (limited to 'src')
-rw-r--r--src/main.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/src/main.c b/src/main.c
index cdc6eb0..2f2edab 100644
--- a/src/main.c
+++ b/src/main.c
@@ -462,10 +462,7 @@ main (int argc, char **argv)
filter_destroy ();
#endif /* FILTER_ENABLE */
- if (config.syslog)
- closelog ();
- else
- close_log_file ();
+ shutdown_logging ();
return EXIT_SUCCESS;
}