Lines Matching refs:write_pipe
33 int sync_with_child(union pipe read_pipe, union pipe write_pipe) in sync_with_child() argument
37 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in sync_with_child()
55 int notify_parent(union pipe write_pipe) in notify_parent() argument
59 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent()
64 int notify_parent_of_error(union pipe write_pipe) in notify_parent_of_error() argument
68 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent_of_error()
97 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) in eat_cpu_child() argument
107 notify_parent(write_pipe); in eat_cpu_child()
118 union pipe read_pipe, write_pipe; in eat_cpu() local
129 if (pipe(write_pipe.fds) == -1) in eat_cpu()
134 exit(eat_cpu_child(write_pipe, read_pipe)); in eat_cpu()
136 if (sync_with_child(read_pipe, write_pipe)) { in eat_cpu()