Debian Codegraph @

libgo/go/os/wait_unimp.go

raw
1 // Copyright 2016 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.
4
5 // aix, darwin, js/wasm, openbsd and solaris don't implement
6 // waitid/wait6. netbsd implements wait6, but that is causing test
7 // failures, see issue #48789.
8
9 //go:build aix || darwin || hurd || (js && wasm) || netbsd || openbsd || solaris
10
11 package os
12
13 // blockUntilWaitable attempts to block until a call to p.Wait will
14 // succeed immediately, and reports whether it has done so.
15 // It does not actually call p.Wait.
16 // This version is used on systems that do not implement waitid,
17 // or where we have not implemented it yet. Note that this is racy:
18 // a call to Process.Signal can in an extremely unlikely case send a
19 // signal to the wrong process, see issue #13987.
20 func (p *Process) blockUntilWaitable() (bool, error) {
21 return false, nil
22 }