Uh oh!
There was an error while loading. Please reload this page.
Ignore SIGURG on Linux. - #2929
Conversation
Codecov Report
@@ Coverage Diff @@## master #2929 +/- ##
==========================================
+ Coverage 57.04% 57.10% +0.06%
==========================================
Files 297 299 +2 Lines 18655 18665 +10 ==========================================
+ Hits 10641 10658 +17 + Misses 7154 7146 -8 - Partials 860 861 +1 |
silvin-lubecki
left a comment
There was a problem hiding this comment.
Thank you for this PR @cpuguy83 👍 Code looks good, but could we add a unit test on this new behavior ? 🙏
cpuguy83
commented
Jan 14, 2021
I'm not sure we can.
|
silvin-lubecki
commented
Jan 14, 2021
I wonder if we can play with the channel returned by the ch:=ForwardAllSignals(ctx, fakeCli, "id")
ch<-unix.SIGURG// check fakeCli.ContainerKill was not calledWDYT? |
cpuguy83
commented
Jan 14, 2021
I think unless we pass in a |
thaJeztah
commented
Jan 14, 2021
Would (some of) these be useful to be included in https://github.com/moby/moby/tree/master/pkg/signal ? Or too unrelated to that package? |
cpuguy83
commented
Jan 14, 2021
We could probably add an |
cpuguy83
commented
Jan 14, 2021
But I really wanted to not modify that package to fix the CLI because dependency hell. |
cpuguy83
commented
Jan 14, 2021
Updated this to add a couple of tests. |
silvin-lubecki
commented
Jan 15, 2021
@cpuguy83 the linter is complaining: |
In go1.14+, SIGURG is used by the runtime to handle preemtable system calls. In practice this signal caught *frequently*. For reference: https://go.googlesource.com/proposal/+/master/design/24543-non-cooperative-preemption.mdgolang/go#37942 Signed-off-by: Brian Goff <cpuguy83@gmail.com>
cpuguy83
commented
Jan 15, 2021
Fixed lint issue. Now flakey test? |
thaJeztah
commented
Jan 16, 2021
ah, interesting; it was reported in #2882 to be flaky; so far don't have a clue yet why (perhaps you can spot the issue?) |
thaJeztah
commented
Jan 16, 2021
kicked CI |
This extends docker#2929 to Darwin as well as Linux. Running the example in golang/go#37942 I see lots of: ``` dave@m1 sigurg % uname -ms Darwin arm64 dave@m1 sigurg % go run main.go received urgent I/O condition: 2021-05-21 16:03:03.482211 +0100 BST m=+0.014553751 received urgent I/O condition: 2021-05-21 16:03:03.507171 +0100 BST m=+0.039514459 ``` Signed-off-by: David Scott <dave@recoil.org>
This extends docker#2929 to Darwin as well as Linux. Running the example in golang/go#37942 I see lots of: ``` dave@m1 sigurg % uname -ms Darwin arm64 dave@m1 sigurg % go run main.go received urgent I/O condition: 2021-05-21 16:03:03.482211 +0100 BST m=+0.014553751 received urgent I/O condition: 2021-05-21 16:03:03.507171 +0100 BST m=+0.039514459 ``` Signed-off-by: David Scott <dave@recoil.org>
This extends docker#2929 to Darwin as well as Linux. Running the example in golang/go#37942 I see lots of: ``` dave@m1 sigurg % uname -ms Darwin arm64 dave@m1 sigurg % go run main.go received urgent I/O condition: 2021-05-21 16:03:03.482211 +0100 BST m=+0.014553751 received urgent I/O condition: 2021-05-21 16:03:03.507171 +0100 BST m=+0.039514459 ``` Signed-off-by: David Scott <dave@recoil.org>
This extends docker#2929 to Darwin as well as Linux. Running the example in golang/go#37942 I see lots of: ``` dave@m1 sigurg % uname -ms Darwin arm64 dave@m1 sigurg % go run main.go received urgent I/O condition: 2021-05-21 16:03:03.482211 +0100 BST m=+0.014553751 received urgent I/O condition: 2021-05-21 16:03:03.507171 +0100 BST m=+0.039514459 ``` Signed-off-by: David Scott <dave@recoil.org>
This extends docker#2929 to Darwin as well as Linux. Running the example in golang/go#37942 I see lots of: ``` dave@m1 sigurg % uname -ms Darwin arm64 dave@m1 sigurg % go run main.go received urgent I/O condition: 2021-05-21 16:03:03.482211 +0100 BST m=+0.014553751 received urgent I/O condition: 2021-05-21 16:03:03.507171 +0100 BST m=+0.039514459 ``` Signed-off-by: David Scott <dave@recoil.org>
This extends docker#2929 to Darwin as well as Linux. Running the example in golang/go#37942 I see lots of: ``` dave@m1 sigurg % uname -ms Darwin arm64 dave@m1 sigurg % go run main.go received urgent I/O condition: 2021-05-21 16:03:03.482211 +0100 BST m=+0.014553751 received urgent I/O condition: 2021-05-21 16:03:03.507171 +0100 BST m=+0.039514459 ``` Signed-off-by: David Scott <dave@recoil.org> (cherry picked from commit cedaf44) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
In go1.14+, SIGURG is used by the runtime to handle preemtable system
calls.
In practice this signal is caught frequently.
For reference:
https://go.googlesource.com/proposal/+/master/design/24543-non-cooperative-preemption.md
golang/go#37942