Home | History | Annotate | Download | only in syscall

Lines Matching refs:Pid

122 func forkAndExecInChild(argv0 *byte, argv []*byte, envv []envItem, dir *byte, attr *ProcAttr, pipe int, rflag int) (pid int, err error) {
161 // parent; return PID
354 func forkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) {
423 pid, err = forkAndExecInChild(argv0p, argvp, envvParsed, dir, attr, p[1], sys.Rfork)
447 for wmsg.Pid != pid {
454 return pid, nil
477 func startProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) {
479 pid int
488 ret.pid, ret.err = forkExec(argv0, argv, attr)
490 if ret.err != nil || ret.pid == 0 {
502 procs.waits[ret.pid] = waitc
508 for w.err == nil && w.Pid != ret.pid {
515 return ret.pid, ret.err
519 func ForkExec(argv0 string, argv []string, attr *ProcAttr) (pid int, err error) {
524 func StartProcess(argv0 string, argv []string, attr *ProcAttr) (pid int, handle uintptr, err error) {
525 pid, err = startProcess(argv0, argv, attr)
526 return pid, 0, err
573 // WaitProcess waits until the pid of a
578 func WaitProcess(pid int, w *Waitmsg) (err error) {
580 ch := procs.waits[pid]
587 if procs.waits[pid] == ch {
588 delete(procs.waits, pid)