container: synchronise after notify
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 2m18s
Test / Hakurei (push) Successful in 3m7s
Test / Sandbox (race detector) (push) Successful in 3m59s
Test / Hpkg (push) Successful in 4m7s
Test / Hakurei (race detector) (push) Successful in 4m45s
Test / Flake checks (push) Successful in 1m23s
All checks were successful
Test / Create distribution (push) Successful in 33s
Test / Sandbox (push) Successful in 2m18s
Test / Hakurei (push) Successful in 3m7s
Test / Sandbox (race detector) (push) Successful in 3m59s
Test / Hpkg (push) Successful in 4m7s
Test / Hakurei (race detector) (push) Successful in 4m45s
Test / Flake checks (push) Successful in 1m23s
This should eliminate intermittent failures in the forward test. Signed-off-by: Ophestra <cat@gensokyo.uk>
This commit is contained in:
parent
123d7fbfd5
commit
e5ff40e7d3
@ -576,14 +576,13 @@ const (
|
|||||||
func init() {
|
func init() {
|
||||||
helperCommands = append(helperCommands, func(c command.Command) {
|
helperCommands = append(helperCommands, func(c command.Command) {
|
||||||
c.Command("block", command.UsageInternal, func(args []string) error {
|
c.Command("block", command.UsageInternal, func(args []string) error {
|
||||||
|
sig := make(chan os.Signal, 1)
|
||||||
|
signal.Notify(sig, os.Interrupt)
|
||||||
|
go func() { <-sig; os.Exit(blockExitCodeInterrupt) }()
|
||||||
|
|
||||||
if _, err := os.NewFile(3, "sync").Write([]byte{0}); err != nil {
|
if _, err := os.NewFile(3, "sync").Write([]byte{0}); err != nil {
|
||||||
return fmt.Errorf("write to sync pipe: %v", err)
|
return fmt.Errorf("write to sync pipe: %v", err)
|
||||||
}
|
}
|
||||||
{
|
|
||||||
sig := make(chan os.Signal, 1)
|
|
||||||
signal.Notify(sig, os.Interrupt)
|
|
||||||
go func() { <-sig; os.Exit(blockExitCodeInterrupt) }()
|
|
||||||
}
|
|
||||||
select {}
|
select {}
|
||||||
})
|
})
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user