Home | History | Annotate | Download | only in os

Lines Matching defs:Pid

34 	pid, h, e := syscall.StartProcess(name, argv, sysattr)
39 return newProcess(pid, h), nil
43 f, e := OpenFile("/proc/"+itoa(p.Pid)+"/"+file, O_WRONLY, 0)
69 if p.Pid == -1 {
72 err = syscall.WaitProcess(p.Pid, &waitmsg)
79 pid: waitmsg.Pid,
87 p.Pid = -1
93 func findProcess(pid int) (p *Process, err error) {
95 return newProcess(pid, 0), nil
100 pid int // The process's id.
104 // Pid returns the process id of the exited process.
105 func (p *ProcessState) Pid() int {
106 return p.pid