1 // Copyright 2015 The Go Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style
3 // license that can be found in the LICENSE file.
16 // The channel used to read SIGIO signals.
17 var sigioChan chan os.Signal
19 // CatchSIGIO starts catching SIGIO signals.
22 sigioChan = make(chan os.Signal, 1)
23 signal.Notify(sigioChan, syscall.SIGIO)
26 // ResetSIGIO stops catching SIGIO signals.
29 signal.Reset(syscall.SIGIO)
32 // SawSIGIO returns whether we saw a SIGIO within a brief pause.
34 func SawSIGIO() C.int {
38 case <-time.After(100 * time.Millisecond):