const char *subject,
int nCriterions,
const char **CritStr,
- long *CritStrLen,
+ const long *CritStrLen,
long ccid,
long ioid,
time_t NOW)
eUpdate,
ccid,
ioid);
- if (seenstamp < tsday)
+ if ((seenstamp > 0) && (seenstamp < tsday))
{
FreeStrBuf(&guid);
/* yes, we did. flood protection kicks in. */
if (nFireUpsNonRestart != nFireUps)
{
StrBuf *CrashMail;
-
+ const char *msgs[1] = {"crash"};
+ const long lens[1] = {sizeof("crash") - 1};
CrashMail = NewStrBuf();
syslog(LOG_ALERT, "Posting crash message\n");
StrBufPrintf(CrashMail,
" If you have already done this, the core dump is likely to be found at %score.%d\n"
,
ctdl_run_dir, ForkedPid);
- CtdlAideMessage(ChrPtr(CrashMail), "Citadel server process terminated unexpectedly");
+ CtdlAideFPMessage(ChrPtr(CrashMail),
+ "Citadel server process terminated unexpectedly",
+ 1, msgs, lens,
+ 0, 0,
+ time(NULL));
FreeStrBuf(&CrashMail);
}
}