about summary refs log tree commit diff
path: root/src/libutil/util.cc
diff options
context:
space:
mode:
authorEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-04T15·27+0200
committerEelco Dolstra <eelco.dolstra@logicblox.com>2014-08-04T15·27+0200
commit4d73e2e893850d032770373b026854228c61dc8e (patch)
tree49036b5558203df686632100a6e0140dfef20bef /src/libutil/util.cc
parentbb45092f72d173a7754f7e4a6457d44c748a893b (diff)
Get rid of "killing <pid>" message for unused build hooks
Diffstat (limited to 'src/libutil/util.cc')
-rw-r--r--src/libutil/util.cc5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/libutil/util.cc b/src/libutil/util.cc
index 44087d58e513..ed283fb8c8f6 100644
--- a/src/libutil/util.cc
+++ b/src/libutil/util.cc
@@ -740,11 +740,12 @@ Pid::operator pid_t()
 }
 
 
-void Pid::kill()
+void Pid::kill(bool quiet)
 {
     if (pid == -1 || pid == 0) return;
 
-    printMsg(lvlError, format("killing process %1%") % pid);
+    if (!quiet)
+        printMsg(lvlError, format("killing process %1%") % pid);
 
     /* Send the requested signal to the child.  If it has its own
        process group, send the signal to every process in the child