git://git.exim.org
/
exim.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Debug: "kill" option on ACL control=debug. Bug 1831
[exim.git]
/
src
/
src
/
log.c
diff --git
a/src/src/log.c
b/src/src/log.c
index 9e68097206bc1ad91fcf69d0e006785283ac4690..b01a179c0bb37ccb27c1f3f658ca8c16bcea6070 100644
(file)
--- a/
src/src/log.c
+++ b/
src/src/log.c
@@
-503,6
+503,13
@@
log_write(0, LOG_PANIC_DIE, "Cannot open %s log file \"%s\": %s: "
}
}
+static void
+unlink_log(int type)
+{
+if (type == lt_debug) unlink(CS debuglog_name);
+}
+
+
/*************************************************
* Add configuration file info to log line *
/*************************************************
* Add configuration file info to log line *
@@
-1395,7
+1402,7
@@
int fd = -1;
if (debug_file)
{
debug_printf("DEBUGGING ACTIVATED FROM WITHIN CONFIG.\n"
if (debug_file)
{
debug_printf("DEBUGGING ACTIVATED FROM WITHIN CONFIG.\n"
- "DEBUG: Tag=\"%s\"
O
pts=\"%s\"\n", tag_name, opts ? opts : US"");
+ "DEBUG: Tag=\"%s\"
o
pts=\"%s\"\n", tag_name, opts ? opts : US"");
return;
}
return;
}
@@
-1426,4
+1433,16
@@
else
}
}
+void
+debug_logging_stop(void)
+{
+if (!debug_file || !debuglog_name[0]) return;
+
+debug_selector = 0;
+fclose(debug_file);
+debug_file = NULL;
+unlink_log(lt_debug);
+}
+
+
/* End of log.c */
/* End of log.c */