diff options
author | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-09T15·42+0100 |
---|---|---|
committer | Eelco Dolstra <eelco.dolstra@logicblox.com> | 2012-11-09T15·42+0100 |
commit | 10dcee99ed62a775c05f34aa70449945d537e1a2 (patch) | |
tree | 4b60acb53162cf4145e9a8085f328b3101399443 /src/libutil/util.cc | |
parent | 4c9e3fa6412f736ce422f8deb0ba825999b66b0a (diff) |
Remove the quickExit function
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r-- | src/libutil/util.cc | 12 |
1 files changed, 3 insertions, 9 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc index afb0dc0b2c07..bfed96846379 100644 --- a/src/libutil/util.cc +++ b/src/libutil/util.cc @@ -847,9 +847,9 @@ void killUser(uid_t uid) } catch (std::exception & e) { std::cerr << format("killing processes belonging to uid `%1%': %2%") % uid % e.what() << std::endl; - quickExit(1); + _exit(1); } - quickExit(0); + _exit(0); } /* parent */ @@ -905,7 +905,7 @@ string runProgram(Path program, bool searchPath, const Strings & args) } catch (std::exception & e) { std::cerr << "error: " << e.what() << std::endl; } - quickExit(1); + _exit(1); } /* Parent. */ @@ -944,12 +944,6 @@ void closeOnExec(int fd) } -void quickExit(int status) -{ - _exit(status); -} - - void setuidCleanup() { /* Don't trust the environment. */ |