summaryrefslogtreecommitdiffstats
path: root/src/subprocess.cc
diff options
context:
space:
mode:
authorNicolas Despres <nicolas.despres@gmail.com>2011-04-09 17:51:21 (GMT)
committerNicolas Despres <nicolas.despres@gmail.com>2011-04-26 11:20:08 (GMT)
commitb471f2db6e79abeda1717f3f136bc369eb916958 (patch)
treecf2dd6e35c99125e25e46b78e46dcdfff9053712 /src/subprocess.cc
parent5c192cda0788faeed93b3ba03a6830ed43762b24 (diff)
downloadNinja-b471f2db6e79abeda1717f3f136bc369eb916958.zip
Ninja-b471f2db6e79abeda1717f3f136bc369eb916958.tar.gz
Ninja-b471f2db6e79abeda1717f3f136bc369eb916958.tar.bz2
Prefix perror(3) messages with program name.
It make it easier while debugging to know who is reporting the error: Ninja itself or one of the command called by Ninja during the build process or one of the generator which called Ninja.
Diffstat (limited to 'src/subprocess.cc')
-rw-r--r--src/subprocess.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/subprocess.cc b/src/subprocess.cc
index 1043e65..cef0ad3 100644
--- a/src/subprocess.cc
+++ b/src/subprocess.cc
@@ -157,7 +157,7 @@ void SubprocessSet::DoWork() {
int ret = poll(fds.data(), fds.size(), -1);
if (ret == -1) {
if (errno != EINTR)
- perror("poll");
+ perror("ninja: poll");
return;
}