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.
23 sigioChan = make(chan os.Signal, 1)
24 signal.Notify(sigioChan, syscall.SIGIO)
27 // ResetSIGIO stops catching SIGIO signals.
31 signal.Reset(syscall.SIGIO)
34 // SawSIGIO returns whether we saw a SIGIO within a brief pause.
37 func SawSIGIO() C.int {
41 case <-time.After(100 * time.Millisecond):