Browse Source

Minor fix.

merge-requests/365/head
eidheim 10 years ago
parent
commit
fbe7a58886
  1. 2
      src/terminal.cc

2
src/terminal.cc

@ -199,6 +199,8 @@ 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==0); callback(exit_code==0);
} }

Loading…
Cancel
Save