From 0d617eefc96a878044cf44095356d35d4c2f91ae Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Tue, 3 Nov 2020 11:57:55 -0800 Subject: [PATCH 1/2] vere: save snapshot upon completed replay --- pkg/urbit/vere/pier.c | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/urbit/vere/pier.c b/pkg/urbit/vere/pier.c index 1515ebff5..0da9f6bb1 100644 --- a/pkg/urbit/vere/pier.c +++ b/pkg/urbit/vere/pier.c @@ -725,6 +725,7 @@ _pier_play(u3_play* pay_u) u3_pier_cram(pir_u); } else if ( pay_u->eve_d == log_u->dun_d ) { + u3_lord_save(pir_u->god_u); _pier_work_init(pir_u); } } From 94da5c9102d746cc13618f3fd316e8a0de3c543a Mon Sep 17 00:00:00 2001 From: Joe Bryan Date: Tue, 3 Nov 2020 12:00:54 -0800 Subject: [PATCH 2/2] vere: add comment noting possible ctrl-z deadlock --- pkg/urbit/vere/disk.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/urbit/vere/disk.c b/pkg/urbit/vere/disk.c index 756ec9ab8..8b11c1962 100644 --- a/pkg/urbit/vere/disk.c +++ b/pkg/urbit/vere/disk.c @@ -633,6 +633,9 @@ u3_disk_exit(u3_disk* log_u) // cancel write thread // + // XX can deadlock when called from signal handler + // XX revise SIGTSTP handling + // if ( c3y == log_u->ted_o ) { c3_i sas_i;