Skip to content

Commit

Permalink
vm: fix inverted condition in uc_vm_signal_handlers_setup()
Browse files Browse the repository at this point in the history
The previous code refactoring inadvertently broke the signal setup
condition check.

Fixes: #254
Fixes: f9d2faf ("vm: reset signals when freeing VM")
Signed-off-by: Jo-Philipp Wich <[email protected]>
  • Loading branch information
jow- committed Dec 6, 2024
1 parent 209f041 commit a362263
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion vm.c
Original file line number Diff line number Diff line change
Expand Up @@ -165,7 +165,7 @@ uc_vm_signal_handlers_setup(uc_vm_t *vm)
vm->signal.sigpipe[0] = -1;
vm->signal.sigpipe[1] = -1;

if (vm->config->setup_signal_handlers)
if (!vm->config->setup_signal_handlers)
return;

tctx = uc_thread_context_get();
Expand Down

0 comments on commit a362263

Please sign in to comment.