Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, for more info) to build successfully.

Commit 3e980f59 authored by rswindell's avatar rswindell

Log the process-ID (PID) on the debug-level log lines: "invoked" and "exiting"

Always log the "exiting" line when exiting with a non-zero error level.
parent 87f4ac6b
......@@ -3023,12 +3023,13 @@ void bail(int error_level)
if(cfg.log_level == LOG_DEBUG
|| error_level
|| netmail || exported_netmail || packed_netmail
|| echomail || exported_echomail
|| packets_imported || packets_sent
|| bundles_unpacked || bundles_sent) {
char signoff[1024];
sprintf(signoff, "SBBSecho exiting with error level %d", error_level);
sprintf(signoff, "SBBSecho (PID %u) exiting with error level %d", getpid(), error_level);
if(bundles_unpacked || bundles_sent)
sprintf(signoff+strlen(signoff), ", Bundles(%lu unpacked, %lu sent)", bundles_unpacked, bundles_sent);
if(packets_imported || packets_sent)
......@@ -6314,7 +6315,7 @@ int main(int argc, char **argv)
lprintf(LOG_DEBUG,"%s invoked with options: %s", sbbsecho_pid(), cmdline);
lprintf(LOG_DEBUG,"%s (PID %u) invoked with options: %s", sbbsecho_pid(), getpid(), cmdline);
lprintf(LOG_DEBUG,"Configured: %u archivers, %u linked-nodes, %u echolists", cfg.arcdefs, cfg.nodecfgs, cfg.listcfgs);
lprintf(LOG_DEBUG,"NetMail directory: %s", scfg.netmail_dir);
lprintf(LOG_DEBUG,"Secure Inbound directory: %s", cfg.secure_inbound);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment