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