Notify(c, syscall.SIGHUP)
defer Stop(c)
- t.Logf("sighup...")
// Send this process a SIGHUP
+ t.Logf("sighup...")
syscall.Kill(syscall.Getpid(), syscall.SIGHUP)
waitSig(t, c, syscall.SIGHUP)
c1 := make(chan os.Signal, 1)
Notify(c1)
- t.Logf("sigwinch...")
// Send this process a SIGWINCH
+ t.Logf("sigwinch...")
syscall.Kill(syscall.Getpid(), syscall.SIGWINCH)
waitSig(t, c1, syscall.SIGWINCH)
// Send two more SIGHUPs, to make sure that
// they get delivered on c1 and that not reading
// from c does not block everything.
- t.Logf("sigwinch...")
+ t.Logf("sighup...")
syscall.Kill(syscall.Getpid(), syscall.SIGHUP)
waitSig(t, c1, syscall.SIGHUP)
- t.Logf("sigwinch...")
+ t.Logf("sighup...")
syscall.Kill(syscall.Getpid(), syscall.SIGHUP)
waitSig(t, c1, syscall.SIGHUP)