Skip to content

Commit

Permalink
main: restore SIGTSTP handler after replay (#656)
Browse files Browse the repository at this point in the history
CTRL+z to force kill an urbit process has been broken for some time.
This was caused by our SIGTSTP handler being overwritten in
`_cw_play_imp` that gets called not only during replay but on every boot
if we're not a new pier.
  • Loading branch information
pkova authored May 29, 2024
2 parents 07e781a + 5ba82e8 commit 6c07292
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/vere/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -3111,6 +3111,7 @@ main(c3_i argc,
// validate whether we can execute disk migration
if ( u3_Host.ops_u.nuu == c3n ) {
_cw_play_impl(0, 0, c3n, c3n, c3n);
signal(SIGTSTP, _stop_exit);
// XX unmap loom, else parts of the snapshot could be left in memory
}

Expand Down

0 comments on commit 6c07292

Please sign in to comment.