Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for WaitProcess (0.13 sec)

  1. src/os/exec_plan9.go

    }
    
    func (p *Process) wait() (ps *ProcessState, err error) {
    	var waitmsg syscall.Waitmsg
    
    	switch p.pidStatus() {
    	case statusReleased:
    		return nil, ErrInvalid
    	}
    
    	err = syscall.WaitProcess(p.Pid, &waitmsg)
    	if err != nil {
    		return nil, NewSyscallError("wait", err)
    	}
    
    	p.pidDeactivate(statusDone)
    	ps = &ProcessState{
    		pid:    waitmsg.Pid,
    		status: &waitmsg,
    	}
    	return ps, nil
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Jun 10 22:06:47 UTC 2024
    - 3.4K bytes
    - Viewed (0)
  2. src/syscall/exec_plan9.go

    		uintptr(unsafe.Pointer(&argvp[0])),
    		0)
    
    	return e1
    }
    
    // WaitProcess waits until the pid of a
    // running process is found in the queue of
    // wait messages. It is used in conjunction
    // with [ForkExec]/[StartProcess] to wait for a
    // running process to exit.
    func WaitProcess(pid int, w *Waitmsg) (err error) {
    	procs.Lock()
    	ch := procs.waits[pid]
    	procs.Unlock()
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Mon Feb 26 21:03:59 UTC 2024
    - 13.3K bytes
    - Viewed (0)
Back to top