Lines Matching refs:write_pipe
20 int sync_with_child(union pipe read_pipe, union pipe write_pipe) in sync_with_child() argument
24 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in sync_with_child()
42 int notify_parent(union pipe write_pipe) in notify_parent() argument
46 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent()
51 int notify_parent_of_error(union pipe write_pipe) in notify_parent_of_error() argument
55 FAIL_IF(write(write_pipe.write_fd, &c, 1) != 1); in notify_parent_of_error()
84 static int eat_cpu_child(union pipe read_pipe, union pipe write_pipe) in eat_cpu_child() argument
94 notify_parent(write_pipe); in eat_cpu_child()
105 union pipe read_pipe, write_pipe; in eat_cpu() local
114 if (pipe(write_pipe.fds) == -1) in eat_cpu()
119 exit(eat_cpu_child(write_pipe, read_pipe)); in eat_cpu()
121 if (sync_with_child(read_pipe, write_pipe)) { in eat_cpu()