forked from docker/cli
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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>
- Loading branch information
Showing
3 changed files
with
4 additions
and
2 deletions.
There are no files selected for viewing
2 changes: 2 additions & 0 deletions
2
cli/command/container/signals_linux.go → cli/command/container/signals_unix.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// +build !windows | ||
|
||
package container | ||
|
||
import ( | ||
|
2 changes: 2 additions & 0 deletions
2
cli/command/container/signals_linux_test.go → cli/command/container/signals_unix_test.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,5 @@ | ||
// +build !windows | ||
|
||
package container | ||
|
||
import ( | ||
|
2 changes: 0 additions & 2 deletions
2
cli/command/container/signals_notlinux.go → cli/command/container/signals_windows.go
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,3 @@ | ||
// +build !linux | ||
|
||
package container | ||
|
||
import "os" | ||
|