summaryrefslogtreecommitdiffstats
path: root/src/subprocess.cc
diff options
context:
space:
mode:
Diffstat (limited to 'src/subprocess.cc')
-rw-r--r--src/subprocess.cc3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/subprocess.cc b/src/subprocess.cc
index 7bf4fc3..168ac10 100644
--- a/src/subprocess.cc
+++ b/src/subprocess.cc
@@ -71,7 +71,8 @@ bool Subprocess::Start(const string& command) {
// If we get here, something went wrong; the execl should have
// replaced us.
char* err = strerror(errno);
- write(error_pipe, err, strlen(err));
+ int unused = write(error_pipe, err, strlen(err));
+ unused = unused; // If the write fails, there's nothing we can do.
_exit(1);
}