summaryrefslogtreecommitdiff
path: root/src/execute.cpp
diff options
context:
space:
mode:
authorJoel Rosdahl <joel@rosdahl.net>2020-07-31 19:35:53 +0200
committerJoel Rosdahl <joel@rosdahl.net>2020-07-31 20:31:54 +0200
commit47e5952ede1609489a51eb6f5086692edcf880d3 (patch)
treee40f72380c43acd60bfc7c7728f7171dbc31a101 /src/execute.cpp
parentd94f940e69cb828580e31b85d29a26ab5e50d9c8 (diff)
downloadccache-47e5952ede1609489a51eb6f5086692edcf880d3.tar.gz
Remove unnecessary x_exit function
It’s no longer necessary to use it after 91aa70754c3816537b080fef1c6630313b400721.
Diffstat (limited to 'src/execute.cpp')
-rw-r--r--src/execute.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/execute.cpp b/src/execute.cpp
index f17e52e9..72e08cbd 100644
--- a/src/execute.cpp
+++ b/src/execute.cpp
@@ -145,7 +145,7 @@ win32execute(const char* path,
CloseHandle(pi.hProcess);
CloseHandle(pi.hThread);
if (!doreturn) {
- x_exit(exitcode);
+ exit(exitcode);
}
return exitcode;
}
@@ -174,7 +174,7 @@ execute(const char* const* argv, Fd&& fd_out, Fd&& fd_err, pid_t* pid)
fd_out.close();
dup2(*fd_err, STDERR_FILENO);
fd_err.close();
- x_exit(execv(argv[0], const_cast<char* const*>(argv)));
+ exit(execv(argv[0], const_cast<char* const*>(argv)));
}
fd_out.close();