Remask received signal after re-raising it

This commit is contained in:
Matt Green 2016-12-15 09:41:10 -05:00
parent 154c23a5a4
commit 787c31040c
2 changed files with 8 additions and 2 deletions

View File

@ -53,10 +53,11 @@ pub fn install_handler<F>(handler: F)
let mut new_mask = SigSet::empty();
new_mask.add(raw_signal);
let _ = new_mask.thread_unblock();
// Re-raise
// Re-raise with signal unmasked
let _ = new_mask.thread_unblock();
let _ = raise(raw_signal);
let _ = new_mask.thread_block();
}
});
}

5
test/print_hi.py Normal file
View File

@ -0,0 +1,5 @@
import time
while True:
print "hi"
time.sleep(1)