Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for blockUntilWaitable (0.2 sec)

  1. src/os/exec_unix.go

    	//
    	// Checking for statusDone here would not be a complete fix, as the PID
    	// could still be waited on and reused prior to blockUntilWaitable.
    	switch p.pidStatus() {
    	case statusReleased:
    		return nil, syscall.EINVAL
    	}
    
    	// If we can block until Wait4 will succeed immediately, do so.
    	ready, err := p.blockUntilWaitable()
    	if err != nil {
    		return nil, err
    	}
    	if ready {
    		// Mark the process done now, before the call to Wait4,
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 4.1K bytes
    - Viewed (0)
  2. src/os/pidfd_linux.go

    	// because the PID recycle issue doesn't exist (IOW, pidfd, unlike PID,
    	// is guaranteed to refer to one particular process). Thus, there is no
    	// need for the workaround (blockUntilWaitable + sigMu) from pidWait.
    	//
    	// We _do_ need to be careful about reuse of the pidfd FD number when
    	// closing the pidfd. See handle for more details.
    	handle, status := p.handleTransientAcquire()
    	switch status {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jun 11 18:08:44 UTC 2024
    - 4.2K bytes
    - Viewed (0)
Back to top