|
|
|
@ -201,8 +201,6 @@ void Terminal::async_execute(const std::string &command, const std::string &path |
|
|
|
int exit_code=async_pid_status.at(pid); |
|
|
|
int exit_code=async_pid_status.at(pid); |
|
|
|
async_pid_status.erase(pid); |
|
|
|
async_pid_status.erase(pid); |
|
|
|
async_pid_mutex.unlock(); |
|
|
|
async_pid_mutex.unlock(); |
|
|
|
close(input_descriptor); |
|
|
|
|
|
|
|
close(output_descriptor); |
|
|
|
|
|
|
|
if(callback) |
|
|
|
if(callback) |
|
|
|
callback(exit_code); |
|
|
|
callback(exit_code); |
|
|
|
} |
|
|
|
} |
|
|
|
|