Searched refs:sync_fds (Results 1 – 2 of 2) sorted by relevance
/external/libchrome/sandbox/linux/services/ |
D | init_process_reaper.cc | 27 int sync_fds[2]; in CreateInitProcessReaper() local 29 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sync_fds)) { in CreateInitProcessReaper() 36 close_ret = IGNORE_EINTR(close(sync_fds[0])); in CreateInitProcessReaper() 38 close_ret = IGNORE_EINTR(close(sync_fds[1])); in CreateInitProcessReaper() 53 close_ret = IGNORE_EINTR(close(sync_fds[0])); in CreateInitProcessReaper() 55 close_ret = shutdown(sync_fds[1], SHUT_RD); in CreateInitProcessReaper() 60 CHECK(HANDLE_EINTR(send(sync_fds[1], "C", 1, MSG_NOSIGNAL)) == 1); in CreateInitProcessReaper() 61 close_ret = IGNORE_EINTR(close(sync_fds[1])); in CreateInitProcessReaper() 86 close_ret = IGNORE_EINTR(close(sync_fds[1])); in CreateInitProcessReaper() 88 close_ret = shutdown(sync_fds[0], SHUT_WR); in CreateInitProcessReaper() [all …]
|
/external/libchrome/sandbox/linux/suid/ |
D | sandbox.c | 234 int sync_fds[2]; in MoveToNewNamespaces() local 235 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sync_fds)) { in MoveToNewNamespaces() 248 if (close(sync_fds[0]) || shutdown(sync_fds[1], SHUT_RD)) in MoveToNewNamespaces() 255 if (HANDLE_EINTR(send(sync_fds[1], "C", 1, MSG_NOSIGNAL)) != 1) in MoveToNewNamespaces() 257 if (close(sync_fds[1])) in MoveToNewNamespaces() 268 if (close(sync_fds[1]) || shutdown(sync_fds[0], SHUT_WR)) in MoveToNewNamespaces() 274 if (HANDLE_EINTR(read(sync_fds[0], &should_continue, 1)) != 1) in MoveToNewNamespaces() 276 if (close(sync_fds[0])) in MoveToNewNamespaces()
|