Searched refs:parent_ptty (Results 1 – 1 of 1) sorted by relevance
/system/core/logwrapper/ |
D | logwrap.c | 488 int parent_ptty; in android_fork_execvp_ext() local 503 parent_ptty = TEMP_FAILURE_RETRY(open("/dev/ptmx", O_RDWR)); in android_fork_execvp_ext() 504 if (parent_ptty < 0) { in android_fork_execvp_ext() 511 if (grantpt(parent_ptty) || unlockpt(parent_ptty) || in android_fork_execvp_ext() 512 ptsname_r(parent_ptty, child_devname, sizeof(child_devname)) != 0) { in android_fork_execvp_ext() 539 close(parent_ptty); in android_fork_execvp_ext() 570 TEMP_FAILURE_RETRY(write(parent_ptty, input, left)); in android_fork_execvp_ext() 580 rc = parent(argv[0], parent_ptty, pid, status, log_target, in android_fork_execvp_ext() 592 close(parent_ptty); in android_fork_execvp_ext()
|