Skip to content

Commit

Permalink
Make sure immediate_exit is reset before running a testcase (fix #156) (
Browse files Browse the repository at this point in the history
  • Loading branch information
0vercl0k authored May 5, 2023
1 parent 744cadc commit 43d0166
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/wtf/kvm_backend.cc
Original file line number Diff line number Diff line change
Expand Up @@ -482,7 +482,7 @@ bool KvmBackend_t::Initialize(const Options_t &Opts,

//
// Prepares a sigmask to block SIGALARM from every threads (it'll get
// inherited). At initialization phase, no other threads have been spwaned
// inherited). At initialization phase, no other threads have been spawned
// so we can be sure this mask will get inherited during the creation of the
// threads.
//
Expand Down Expand Up @@ -1454,6 +1454,7 @@ std::optional<TestcaseResult_t> KvmBackend_t::Run(const uint8_t *Buffer,
Stop_ = false;
TestcaseRes_ = Ok_t();
Coverage_.clear();
Run_->immediate_exit = 0;

while (!Stop_) {

Expand Down

0 comments on commit 43d0166

Please sign in to comment.