Lines Matching refs:write_pipe
59 int sync_with_child(union pipe read_pipe, union pipe write_pipe) in sync_with_child() argument
63 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in sync_with_child()
81 int notify_parent(union pipe write_pipe) in notify_parent() argument
85 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent()
90 int notify_parent_of_error(union pipe write_pipe) in notify_parent_of_error() argument
94 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent_of_error()
123 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) in eat_cpu_child() argument
133 notify_parent(write_pipe); in eat_cpu_child()
144 union pipe read_pipe, write_pipe; in eat_cpu() local
155 if (pipe(write_pipe.fds) == -1) in eat_cpu()
160 exit(eat_cpu_child(write_pipe, read_pipe)); in eat_cpu()
162 if (sync_with_child(read_pipe, write_pipe)) { in eat_cpu()