Don't know that this will give that much more information, but the changes have been sitting in the staging area for years.

This commit is contained in:
Neil 2025-01-27 12:02:00 -08:00
parent 1f6f226943
commit b9cb570691

View File

@ -46,6 +46,10 @@ int main(void) {
}
showhelp = 0;
intent = "interesting";
perror("errno");
if(errno) goto catch;
intent = "journal";
jrnl = journal();
fprintf(stderr, "Journal: %s.\n", journal_to_string(&jrnl));
@ -88,6 +92,10 @@ int main(void) {
goto finally;
catch:
perror(intent);
/* Don't know if that will give real insight into the problem… */
if(freopen("error.txt", "w", stdout)) {
printf("Journal: %s.\n", journal_to_string(&jrnl));
}
finally:
/* fixme: ~scan should be idempotent but it's not on disabling ASLR, which
debug mode is in. */