about summary refs log tree commit diff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc12
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. */