Skip to content

Conversation

@njsmith
Copy link
Member

@njsmith njsmith commented Oct 24, 2019

Also switched signal_raise to always run the C-level signal handler in
the current thread, which gives us more control over signal delivery
and lets us test the new behavior.

Fixes gh-109

Also switched signal_raise to always run the C-level signal handler in
the current thread, which gives us more control over signal delivery
and lets us test the new behavior.

Fixes python-triogh-109
@codecov
Copy link

codecov bot commented Oct 24, 2019

Codecov Report

Merging #1267 into master will increase coverage by <.01%.
The diff coverage is 100%.

@@            Coverage Diff             @@
##           master    #1267      +/-   ##
==========================================
+ Coverage   99.57%   99.57%   +<.01%     
==========================================
  Files         106      106              
  Lines       12836    12852      +16     
  Branches      985      987       +2     
==========================================
+ Hits        12781    12797      +16     
  Misses         35       35              
  Partials       20       20
Impacted Files Coverage Δ
trio/_core/tests/test_ki.py 100% <ø> (ø) ⬆️
trio/_core/_io_windows.py 91.07% <ø> (-0.21%) ⬇️
trio/_core/_wakeup_socketpair.py 100% <100%> (ø) ⬆️
trio/_util.py 100% <100%> (ø) ⬆️
trio/_core/_run.py 99.73% <100%> (ø) ⬆️

@oremanj oremanj merged commit d36c2a5 into python-trio:master Oct 25, 2019
Comment on lines +1786 to +1790
with runner.entry_queue.wakeup.wakeup_on_signals():
# The main reason this is split off into its own
# function is just to get rid of this extra
# indentation.
run_impl(runner, async_fn, args)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Wrapping a comment about indentation width to a third line because of the column limit? I wish the world already switched to 120 characters instead of the width of 1980's graphics adapters and terminals.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Maybe use signal.set_wakeup_fd on unix-likes

3 participants