Home
last modified time | relevance | path

Searched refs:sync_fds (Results 1 – 2 of 2) sorted by relevance

/external/chromium_org/sandbox/linux/services/
Dinit_process_reaper.cc27 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/chromium_org/sandbox/linux/suid/
Dsandbox.c233 int sync_fds[2]; in MoveToNewNamespaces() local
234 if (socketpair(AF_UNIX, SOCK_STREAM, 0, sync_fds)) { in MoveToNewNamespaces()
247 if (close(sync_fds[0]) || shutdown(sync_fds[1], SHUT_RD)) in MoveToNewNamespaces()
254 if (HANDLE_EINTR(send(sync_fds[1], "C", 1, MSG_NOSIGNAL)) != 1) in MoveToNewNamespaces()
256 if (close(sync_fds[1])) in MoveToNewNamespaces()
267 if (close(sync_fds[1]) || shutdown(sync_fds[0], SHUT_WR)) in MoveToNewNamespaces()
273 if (HANDLE_EINTR(read(sync_fds[0], &should_continue, 1)) != 1) in MoveToNewNamespaces()
275 if (close(sync_fds[0])) in MoveToNewNamespaces()