Lines Matching refs:result
40 int result = 0; in Close() local
43 result = unlink(this->socket_address_.c_str()); in Close()
44 if (result != 0) { in Close()
50 return result; in Close()
54 CommandResult* result = new CommandResult(); in ExecShellCommandPopen() local
63 result->exit_code = errno; in ExecShellCommandPopen()
64 return result; in ExecShellCommandPopen()
76 result->exit_code = -1; in ExecShellCommandPopen()
77 return result; in ExecShellCommandPopen()
85 result->stdout = ss.str(); in ExecShellCommandPopen()
87 result->exit_code = pclose(output_fp) / 256; in ExecShellCommandPopen()
88 return result; in ExecShellCommandPopen()
92 CommandResult* result = new CommandResult(); in ExecShellCommandNohup() local
112 result->exit_code = exit_code; in ExecShellCommandNohup()
118 result->stdout = string(stdout_file_name); in ExecShellCommandNohup()
120 result->stdout = ReadFile(stdout_file_name); in ExecShellCommandNohup()
128 result->stderr = string(stderr_file_name); in ExecShellCommandNohup()
130 result->stderr = ReadFile(stderr_file_name); in ExecShellCommandNohup()
134 return result; in ExecShellCommandNohup()
139 CommandResult* result = this->ExecShellCommandNohup(command); in ExecShellCommand() local
141 responseMessage->add_stdout(result->stdout); in ExecShellCommand()
142 responseMessage->add_stderr(result->stderr); in ExecShellCommand()
144 int exit_code = result->exit_code; in ExecShellCommand()
145 responseMessage->add_exit_code(result->exit_code); in ExecShellCommand()
147 delete result; in ExecShellCommand()