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