...

Source file src/os/pidfd_other.go

Documentation: os

     1  // Copyright 2023 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  //go:build (unix && !linux) || (js && wasm) || wasip1 || windows
     6  
     7  package os
     8  
     9  import "syscall"
    10  
    11  func ensurePidfd(sysAttr *syscall.SysProcAttr) (*syscall.SysProcAttr, bool) {
    12  	return sysAttr, false
    13  }
    14  
    15  func getPidfd(_ *syscall.SysProcAttr, _ bool) (uintptr, bool) {
    16  	return 0, false
    17  }
    18  
    19  func pidfdFind(_ int) (uintptr, error) {
    20  	return 0, syscall.ENOSYS
    21  }
    22  
    23  func (p *Process) pidfdRelease() {}
    24  
    25  func (_ *Process) pidfdWait() (*ProcessState, error) {
    26  	panic("unreachable")
    27  }
    28  
    29  func (_ *Process) pidfdSendSignal(_ syscall.Signal) error {
    30  	panic("unreachable")
    31  }
    32  

View as plain text