Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 4 of 4 for pidfdSendSignal (0.24 sec)

  1. src/os/pidfd_linux.go

    		rusage: &rusage,
    	}, nil
    }
    
    func (p *Process) pidfdSendSignal(s syscall.Signal) error {
    	handle, status := p.handleTransientAcquire()
    	switch status {
    	case statusDone:
    		return ErrProcessDone
    	case statusReleased:
    		return errors.New("os: process already released")
    	}
    	defer p.handleTransientRelease()
    
    	return convertESRCH(unix.PidFDSendSignal(handle, s))
    }
    
    func pidfdWorks() bool {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
  2. src/internal/syscall/unix/pidfd_linux.go

    // Copyright 2023 The Go Authors. All rights reserved.
    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package unix
    
    import "syscall"
    
    func PidFDSendSignal(pidfd uintptr, s syscall.Signal) error {
    	_, _, errno := syscall.Syscall(pidfdSendSignalTrap, pidfd, uintptr(s), 0)
    	if errno != 0 {
    		return errno
    	}
    	return nil
    }
    
    func PidFDOpen(pid, flags int) (uintptr, error) {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 17 01:23:00 UTC 2024
    - 591 bytes
    - Viewed (0)
  3. src/os/pidfd_other.go

    func pidfdFind(_ int) (uintptr, error) {
    	return 0, syscall.ENOSYS
    }
    
    func (p *Process) pidfdRelease() {}
    
    func (_ *Process) pidfdWait() (*ProcessState, error) {
    	panic("unreachable")
    }
    
    func (_ *Process) pidfdSendSignal(_ syscall.Signal) error {
    	panic("unreachable")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 692 bytes
    - Viewed (0)
  4. src/os/exec_unix.go

    	s, ok := sig.(syscall.Signal)
    	if !ok {
    		return errors.New("os: unsupported signal type")
    	}
    
    	// Which type of Process do we have?
    	switch p.mode {
    	case modeHandle:
    		// pidfd
    		return p.pidfdSendSignal(s)
    	case modePID:
    		// Regular PID
    		return p.pidSignal(s)
    	default:
    		panic("unreachable")
    	}
    }
    
    func (p *Process) pidSignal(s syscall.Signal) error {
    	if p.Pid == pidUnset {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
Back to top