Lines Matching refs:error_fd

45 static void write_string(int error_fd, const char *str) {  in write_string()  argument
46 int r = write(error_fd, str, strlen(str)); in write_string()
50 [[noreturn]] static void ExitWithError(int error_fd, in ExitWithError() argument
53 write_string(error_fd, operation); in ExitWithError()
54 write_string(error_fd, " failed: "); in ExitWithError()
56 write_string(error_fd, strerror(err)); in ExitWithError()
60 static void DisableASLR(int error_fd) { in DisableASLR() argument
65 ExitWithError(error_fd, "personality get"); in DisableASLR()
69 ExitWithError(error_fd, "personality set"); in DisableASLR()
73 static void DupDescriptor(int error_fd, const char *file, int fd, int flags) { in DupDescriptor() argument
77 ExitWithError(error_fd, "DupDescriptor-open"); in DupDescriptor()
83 ExitWithError(error_fd, "DupDescriptor-dup2"); in DupDescriptor()
119 [[noreturn]] static void ChildFunc(int error_fd, const ForkLaunchInfo &info) { in ChildFunc() argument
122 ExitWithError(error_fd, "setpgid"); in ChildFunc()
129 ExitWithError(error_fd, "close"); in ChildFunc()
133 ExitWithError(error_fd, "dup2"); in ChildFunc()
136 DupDescriptor(error_fd, action.path.c_str(), action.fd, action.arg); in ChildFunc()
145 ExitWithError(error_fd, "chdir"); in ChildFunc()
148 DisableASLR(error_fd); in ChildFunc()
155 ExitWithError(error_fd, "pthread_sigmask"); in ChildFunc()
160 ExitWithError(error_fd, "setgid"); in ChildFunc()
182 if (fd > 2 && !info.has_action(fd) && fd != error_fd) in ChildFunc()
191 if (!info.has_action(fd) && fd != error_fd) in ChildFunc()
197 ExitWithError(error_fd, "ptrace"); in ChildFunc()
220 ExitWithError(error_fd, "execve"); in ChildFunc()