Home
last modified time | relevance | path

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

/dalvik/vm/native/
Ddalvik_system_Zygote.c48 pid_t pid; in sigchldHandler() local
51 while ((pid = waitpid(-1, &status, WNOHANG)) > 0) { in sigchldHandler()
62 (int) pid, WEXITSTATUS(status)); in sigchldHandler()
67 (int) pid, WEXITSTATUS(status)); in sigchldHandler()
74 (int) pid, WTERMSIG(status)); in sigchldHandler()
79 (int) pid, WTERMSIG(status)); in sigchldHandler()
85 (int) pid); in sigchldHandler()
95 if (pid == gDvm.systemServerPid) { in sigchldHandler()
98 (int) pid); in sigchldHandler()
103 if (pid < 0) { in sigchldHandler()
[all …]
/dalvik/libcore/dalvik/src/main/native/
Ddalvik_system_TouchDex.cpp48 static void logProcStatus(pid_t pid);
77 pid_t pid; in dalvik_system_TouchDex_trampoline() local
125 pid = fork(); in dalvik_system_TouchDex_trampoline()
126 if (pid < 0) { in dalvik_system_TouchDex_trampoline()
131 if (pid == 0) { in dalvik_system_TouchDex_trampoline()
197 (int) pid, timeout / 10.0); in dalvik_system_TouchDex_trampoline()
200 cc = waitpid(pid, &result, WNOHANG); in dalvik_system_TouchDex_trampoline()
202 LOGE("waitpid(%d) failed: %s", (int) pid, strerror(errno)); in dalvik_system_TouchDex_trampoline()
215 (int) pid, kill(pid, 0)); in dalvik_system_TouchDex_trampoline()
216 logProcStatus(pid); in dalvik_system_TouchDex_trampoline()
[all …]
/dalvik/libcore/luni-kernel/src/main/java/java/lang/
DProcessManager.java99 private static native void kill(int pid) throws IOException; in kill() argument
126 void onExit(int pid, int exitValue) { in onExit() argument
131 if (pid >= 0) { in onExit()
132 processReference = processReferences.remove(pid); in onExit()
192 int pid; in exec() local
194 pid = exec(commands, environment, workingPath, in, out, err); in exec()
203 ProcessImpl process = new ProcessImpl(pid, in, out, err); in exec()
206 processReferences.put(pid, processReference); in exec()
/dalvik/dvz/
Ddvz.c41 static void post_run_func (int pid) { in post_run_func() argument
47 g_pid = pid; in post_run_func()
55 spawned_pgid = getpgid(pid); in post_run_func()
/dalvik/libcore/luni-kernel/src/main/native/
Djava_lang_ProcessManager.c75 static void java_lang_ProcessManager_kill(JNIEnv* env, jclass clazz, jint pid) { in java_lang_ProcessManager_kill() argument
76 int result = kill((pid_t) pid, SIGKILL); in java_lang_ProcessManager_kill()
94 pid_t pid = wait(&status); in java_lang_ProcessManager_watchChildren() local
96 if (pid >= 0) { in java_lang_ProcessManager_watchChildren()
112 pid = -1; in java_lang_ProcessManager_watchChildren()
146 (*env)->CallVoidMethod(env, o, onExitMethod, pid, status); in java_lang_ProcessManager_watchChildren()
/dalvik/vm/
DSignalCatcher.c146 pid_t pid = getpid(); in logThreadStacks() local
157 pid, ptm->tm_year + 1900, ptm->tm_mon+1, ptm->tm_mday, in logThreadStacks()
163 fprintf(fp, "----- end %d -----\n", pid); in logThreadStacks()
DDdm.c367 static bool getThreadStats(pid_t pid, pid_t tid, unsigned long* pUtime, in getThreadStats() argument
403 sprintf(nameBuf, "/proc/%d/task/%d/stat", (int) pid, (int) tid); in getThreadStats()
499 pid_t pid = getpid(); in dvmDdmGenerateThreadStats() local
504 if (!getThreadStats(pid, thread->systemTid, &utime, &stime)) { in dvmDdmGenerateThreadStats()
DThread.c2896 pid_t pid = thread->systemTid; in dvmChangeThreadPriority() local
2907 } else if (getpriority(PRIO_PROCESS, pid) >= ANDROID_PRIORITY_BACKGROUND) { in dvmChangeThreadPriority()
2911 if (setpriority(PRIO_PROCESS, pid, newNice) != 0) { in dvmChangeThreadPriority()
2914 pid, str, newPriority, newNice, strerror(errno)); in dvmChangeThreadPriority()
2918 pid, newPriority, newNice); in dvmChangeThreadPriority()
/dalvik/vm/analysis/
DDexOptimize.c340 pid_t pid; in dvmOptimizeDexFile() local
351 pid = fork(); in dvmOptimizeDexFile()
352 if (pid == 0) { in dvmOptimizeDexFile()
454 LOGV("DexOpt: waiting for verify+opt, pid=%d\n", (int) pid); in dvmOptimizeDexFile()
465 gotPid = waitpid(pid, &status, 0); in dvmOptimizeDexFile()
473 if (gotPid != pid) { in dvmOptimizeDexFile()
475 (int) pid, (int) gotPid, strerror(errno)); in dvmOptimizeDexFile()
/dalvik/vm/oo/
DClass.c200 pid_t pid = getpid(); in logClassLoadWithTime() local
203 LOG(LOG_INFO, "PRELOAD", "%c%d:%d:%d:%s:%d:%s:%lld\n", type, ppid, pid, tid, in logClassLoadWithTime()