Home
last modified time | relevance | path

Searched refs:pid (Results 1 – 25 of 120) sorted by relevance

12345

/device/generic/goldfish/wifi/createns/
Dcreatens.cpp98 static bool writeNamespacePid(const char* name, pid_t pid) { in writeNamespacePid() argument
122 static_cast<int64_t>(pid)); in writeNamespacePid()
160 pid_t pid = ::fork(); in daemonize() local
161 if (pid != 0) { in daemonize()
163 return pid; in daemonize()
170 pid = ::fork(); in daemonize()
171 if (pid != 0) { in daemonize()
174 return pid; in daemonize()
201 pid = ::getpid(); in daemonize()
202 if (::write(fd, &pid, sizeof(pid)) != sizeof(pid)) { in daemonize()
[all …]
/device/generic/goldfish-opengl/tests/ut_rendercontrol_enc/
Dut_rendercontrol.in1 GL_ENTRY(int, createContext, uint32_t pid, uint32_t handle, uint32_t shareCtx, int version)
2 GL_ENTRY(int, createSurface, uint32_t pid, uint32_t handle)
3 GL_ENTRY(int, makeCurrentContext, uint32_t pid, uint32_t drawSurface, uint32_t readSurface, uint32_…
4 GL_ENTRY(void, swapBuffers, uint32_t pid, uint32_t surface)
5 GL_ENTRY(int, destroyContext, uint32_t pid, uint32_t handle)
6 GL_ENTRY(int, destroySurface, uint32_t pid, uint32_t handle)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
Dpopen2.py56 self.pid = os.fork()
57 if self.pid == 0:
96 pid, sts = os.waitpid(self.pid, os.WNOHANG)
98 if pid == self.pid:
108 pid, sts = os.waitpid(self.pid, 0)
111 assert pid == self.pid
124 self.pid = os.fork()
125 if self.pid == 0:
Dpty.py95 pid, fd = os.forkpty()
99 if pid == CHILD:
105 return pid, fd
108 pid = os.fork()
109 if pid == CHILD:
128 return pid, master_fd
159 pid, master_fd = fork()
160 if pid == CHILD:
DSocketServer.py512 pid, status = os.waitpid(0, 0)
514 pid = None
515 if pid not in self.active_children: continue
516 self.active_children.remove(pid)
525 pid, status = os.waitpid(child, os.WNOHANG)
527 pid = None
528 if not pid: continue
530 self.active_children.remove(pid)
532 raise ValueError('%s. x=%d and list=%r' % (e.message, pid,
545 pid = os.fork()
[all …]
/device/generic/goldfish/network/netmgr/
Dfork.cpp28 pid_t pid = ::fork(); in forkAndExec() local
29 if (pid < 0) { in forkAndExec()
33 } else if (pid == 0) { in forkAndExec()
49 ::waitpid(pid, &status, 0); in forkAndExec()
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
Dtest_break.py34 pid = os.getpid()
35 os.kill(pid, signal.SIGINT)
64 pid = os.getpid()
65 os.kill(pid, signal.SIGINT)
82 pid = os.getpid()
83 os.kill(pid, signal.SIGINT)
86 os.kill(pid, signal.SIGINT)
112 pid = os.getpid()
113 os.kill(pid, signal.SIGINT)
137 pid = os.getpid()
[all …]
/device/google/cuttlefish/common/libs/utils/
Dsubprocess.cpp111 auto pid = pid_; // Wait will set pid_ to -1 after waiting in Wait() local
122 LOG(ERROR) << "Subprocess " << pid in Wait()
126 LOG(ERROR) << "Subprocess " << pid in Wait()
146 auto pid = subprocess->pid(); in KillSubprocess() local
147 if (pid > 0) { in KillSubprocess()
148 auto pgid = getpgid(pid); in KillSubprocess()
152 << pid << ": " << strerror(error); in KillSubprocess()
156 bool is_group_head = pid == pgid; in KillSubprocess()
158 return killpg(pid, SIGKILL) == 0; in KillSubprocess()
160 return kill(pid, SIGKILL) == 0; in KillSubprocess()
[all …]
Dsubprocess.h46 Subprocess(pid_t pid, SharedFD control, SubprocessStopper stopper = KillSubprocess)
47 : pid_(pid), in pid_() argument
48 started_(pid > 0), in pid_()
66 pid_t pid() const { return pid_; } in pid() function
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
Dtest_fork1.py46 pid = os.fork()
48 if not pid:
59 self.wait_impl(pid)
62 os.kill(pid, signal.SIGKILL)
Dtest_pty.py114 pid, master_fd = pty.fork()
115 if pid == pty.CHILD:
146 debug("Waiting for child (%d) to finish." % pid)
172 (pid, status) = os.waitpid(pid, 0)
174 debug("Child (%d) exited with status %d (%d)." % (pid, res, status))
Dtest_signal.py90 pid = os.getpid()
92 print "test runner's pid is", pid
94 child = ignoring_eintr(subprocess.Popen, ['kill', '-HUP', str(pid)])
108 child = subprocess.Popen(['kill', '-USR1', str(pid)])
119 child = ignoring_eintr(subprocess.Popen, ['kill', '-USR2', str(pid)])
302 pid = os.fork()
304 if pid == 0:
323 self.addCleanup(os.waitpid, pid, 0)
Dtest_platform.py205 pid = os.fork()
206 if pid == 0:
213 cpid, sts = os.waitpid(pid, 0)
214 self.assertEqual(cpid, pid)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
DSocketServer.py531 pid, _ = os.waitpid(-1, 0)
532 self.active_children.discard(pid)
541 for pid in self.active_children.copy():
543 pid, _ = os.waitpid(pid, os.WNOHANG)
546 self.active_children.discard(pid)
550 self.active_children.discard(pid)
562 pid = os.fork()
563 if pid:
567 self.active_children.add(pid)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/
Dthread_sgi.h81 pid_t mypid, pid; in clean_threads() local
87 if (pidlist[i].parent == mypid && (pid = pidlist[i].child) > 0) { in clean_threads()
88 pid = waitpid(pid, 0, WNOHANG); in clean_threads()
89 if (pid > 0) { in clean_threads()
94 if (pidlist[j].parent == pid) in clean_threads()
/device/google/cuttlefish/tools/
Dvlan_prototype_down.sh15 if [ -f /var/run/cuttlefish-dnsmasq-"${bridge}".pid ]; then
16 kill $(cat /var/run/cuttlefish-dnsmasq-"${bridge}".pid)
Dvlan_prototype_up.sh30 --pid-file=/var/run/cuttlefish-dnsmasq-"${bridge}".pid \
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
Dspawn.py105 pid = os.fork()
107 if pid == 0: # in the child
122 pid, status = os.waitpid(pid, 0)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/
Dtelnet.py59 pid = posix.fork()
61 if pid == 0:
75 posix.kill(pid, 9)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/PyMod-2.7.10/Modules/
Dedk2module.c2060 pid_t pid; in edk2_fork1() local
2063 pid = fork1(); in edk2_fork1()
2064 if (pid == 0) { in edk2_fork1()
2071 if (pid == -1) in edk2_fork1()
2079 return PyLong_FromPid(pid); in edk2_fork1()
2093 pid_t pid; in edk2_fork() local
2096 pid = fork(); in edk2_fork()
2097 if (pid == 0) { in edk2_fork()
2104 if (pid == -1) in edk2_fork()
2112 return PyLong_FromPid(pid); in edk2_fork()
[all …]
/device/mediatek/wembley-sepolicy/non_plat/
Dlmkd.te9 # for pid=194 comm="lmkd" name="23573" dev="proc"
16 # for pid=170 comm="lmkd"
/device/mediatek/wembley-sepolicy/r_non_plat/
Dlmkd.te9 # for pid=194 comm="lmkd" name="23573" dev="proc"
16 # for pid=170 comm="lmkd"
/device/google/cuttlefish/host/commands/stop_cvd/
Dmain.cc108 int64_t pid; in GetCandidateProcessGroups() local
110 while(fscanf(cmd_out.get(), "%" PRId64, &pid) != EOF) { in GetCandidateProcessGroups()
111 pid_t pgid = getpgid(static_cast<pid_t>(pid)); in GetCandidateProcessGroups()
113 LOG(ERROR) << "Unable to get process group of " << pid << ": " in GetCandidateProcessGroups()
/device/linaro/hikey/gralloc/
Dgralloc_priv.h184 int pid; member
232 pid(getpid()), in private_handle_t()
265 pid(getpid()), in private_handle_t()
299 pid(getpid()), in private_handle_t()
/device/generic/opengl-transport/host/libs/virglrenderer/
DContext.h78 if (pid != pid_ && tid != tid_) { in setPidTid()
82 pid = pid_; in setPidTid()
117 int pid = 0; member

12345