Searched refs:pid (Results 1 - 25 of 59) sorted by relevance

123

/device/generic/goldfish/wifi/ipv6proxy/
H A Dnamespace.h23 // Move the process into the same namespace as the process |pid| is in.
24 bool setNetworkNamespace(pid_t pid);
H A Dnamespace.cpp32 // Set the current namespace to that of the /proc/<pid>/ns/net provided in
55 // the same name as the namespace. This file is bound to /proc/<pid>/ns/net
58 // knowing its pid, knowing the namespace name is enough.
61 // file in /proc/<pid>/net. The process has to already be running in that
70 bool setNetworkNamespace(pid_t pid) { argument
71 // If we know the pid we can create the path to the /proc file right away
77 static_cast<unsigned long long>(pid));
/device/google/marlin/dataservices/rmnetctl/inc/
H A Dlibrmnetctl_hndl.h50 * @var pid process id to be used for the netlink message
58 uint32_t pid; member in struct:rmnetctl_hndl_s
/device/google/marlin/dataservices/rmnetctl/src/inc/
H A Dlibrmnetctl_hndl.h50 * @var pid process id to be used for the netlink message
58 uint32_t pid; member in struct:rmnetctl_hndl_s
/device/generic/goldfish/wifi/createns/
H A Dcreatens.cpp98 static bool writeNamespacePid(const char* name, pid_t pid) { argument
103 path += ".pid";
122 static_cast<int64_t>(pid));
137 ALOGE("Unable to write pid to file %s: %s",
160 pid_t pid = ::fork(); local
161 if (pid != 0) {
163 return pid;
170 pid = ::fork();
171 if (pid != 0) {
174 return pid;
263 pid_t pid = daemonize(writePipe.get()); local
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/
H A Dpopen2.py56 self.pid = os.fork()
57 if self.pid == 0:
96 pid, sts = os.waitpid(self.pid, os.WNOHANG)
97 # pid will be 0 if self.pid hasn't terminated
98 if pid == self.pid:
108 pid, sts = os.waitpid(self.pid,
[all...]
H A Dpty.py91 """fork() -> (pid, master_fd)
95 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:
H A 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
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/test/
H A Dtest_fork1.py46 pid = os.fork()
48 if not pid:
57 # exitcode (but a hang, which manifests as 'got pid 0')
59 self.wait_impl(pid)
62 os.kill(pid, signal.SIGKILL)
H A 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))
H A 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)
H A Dtest_platform.py205 pid = os.fork()
206 if pid == 0:
213 cpid, sts = os.waitpid(pid, 0)
214 self.assertEqual(cpid, pid)
H A Dtest_socketserver.py54 pid = os.fork()
55 if pid == 0:
59 pid2, status = os.waitpid(pid, 0)
60 testcase.assertEqual(pid2, pid)
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/unittest/test/
H A 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
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/sockets/
H A Dtelnet.py59 pid = posix.fork()
61 if pid == 0:
75 posix.kill(pid, 9)
/device/generic/goldfish/gralloc/
H A Dgralloc_priv.h79 int pid; member in struct:private_handle_t
90 base(0), pid(getpid())
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.10/Lib/
H A 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)
544 # if the child hasn't exited yet, pid will be 0 and ignored by
546 self.active_children.discard(pid)
550 self.active_children.discard(pid)
562 pid = os.fork()
563 if pid
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Lib/distutils/
H A 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/Python/
H A Dthread_sgi.h81 pid_t mypid, pid; local
87 if (pidlist[i].parent == mypid && (pid = pidlist[i].child) > 0) {
88 pid = waitpid(pid, 0, WNOHANG);
89 if (pid > 0) {
94 if (pidlist[j].parent == pid)
/device/generic/goldfish/wifi/execns/
H A Dexecns.cpp92 snprintf(nsPath, sizeof(nsPath), "%s/%s.pid", kNetNsDir, ns);
110 LOGE("File %s does not contain a valid pid '%s'", nsPath, buffer);
114 LOGE("Invalid contents of pid file %s", nsPath);
121 // the name "<namespace>.pid". This file contains the pid of the createns
125 // open file descriptor to /proc/<pid>/ns/net where <pid> refers to a
126 // process already running in that namespace. So using the pid from the file
128 std::string pid = readNamespacePid(ns); local
129 if (pid
[all...]
/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Demo/pdist/
H A Dcvslock.py12 - Before even attempting to lock, a file "#cvs.tfl.<pid>" is created
26 - create the file "#cvs.rfl.<pid>"
34 - create the file "#cvs.wfl.<pid>"
38 - remove the file "#cvs.wfl.<pid>"
43 - remove the file "#cvs.rfl.<pid>"
117 pid = repr(os.getpid())
119 self.cvsrfl = self.join(CVSRFL + pid)
120 self.cvswfl = self.join(CVSWFL + pid)
/device/generic/goldfish/wifi/
H A Dinit.wifi.sh46 rm -rf /data/vendor/var/run/netns/${NAMESPACE}.pid
53 # createns will have created a file that contains the process id (pid) of a
54 # process running in the network namespace. This pid is needed for some commands
56 PID=$(cat /data/vendor/var/run/netns/${NAMESPACE}.pid)
/device/google/marlin/dataservices/datatop/src/
H A Ddatatop.c164 int pid, rc; local
165 pid = getpid();
167 rc = setpriority(PRIO_PROCESS, pid, niceness);
171 rc = getpriority(PRIO_PROCESS, pid);
/device/google/marlin/dataservices/sockev/src/
H A Dsockev_cli.c85 printf("pid:\t%d\n", msg->pid);
/device/linaro/hikey/gralloc/
H A Dgralloc_priv.h176 int pid; member in struct:private_handle_t
220 pid(getpid()),
252 pid(getpid()),
285 pid(getpid()),

Completed in 647 milliseconds

123