static struct map_struct *cleanup_buf;
static int cleanup_pid = 0;
-void exit_cleanup(int code)
+void _exit_cleanup(int code, const char *file, int line)
{
extern int keep_partial;
unlink(lp_pid_file());
}
}
+
+ if (code) log_exit(code, file, line);
+
exit(code);
}