Added debug logging for segfault tracing

This commit is contained in:
Michiel Broek 2005-11-11 19:50:57 +00:00
parent d06bbbc002
commit 69ebd332ee

View File

@ -162,6 +162,7 @@ void Uploads()
int StartMsg(void);
int StartMsg(void)
{
Syslog('m', "StartMsg()");
if (!Msg_Open(newfiles.Area))
return -1;
@ -202,6 +203,8 @@ void FinishMsg(int Final, int filepos)
char *temp;
FILE *fp, *fi;
Syslog('m', "FinishMsg(%s, %d)", Final ? "TRUE":"FALSE", filepos);
temp = calloc(PATH_MAX, sizeof(char));
if (Final && ((fi = OpenMacro(newfiles.Template, newfiles.Language, FALSE)) != NULL)) {
@ -349,6 +352,7 @@ int Report(gr_list *ta, int filepos)
*/
if (Msg.Size > (CFG.new_split * 1024)) {
MsgCount++;
Syslog('m', "Report() splitting report");
FinishMsg(FALSE, finalpos);
StartMsg();
}