diff options
Diffstat (limited to 'execute.cc')
-rw-r--r-- | execute.cc | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -66,6 +66,9 @@ int execute(const std::string& command, if(pid == 0) { execv(command.data(), (char**)argv.data()); + std::cout << "Could not execute " << command << ": " << + strerror(errno) << "\n"; + _exit(1); // execv only returns if an error occurred } auto ret = parent_waitpid(pid); #elif 0 |