projects
/
platform
/
upstream
/
ninja.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
cf5d479
)
save subproc errors
author
Evan Martin
<martine@danga.com>
Mon, 29 Nov 2010 03:54:03 +0000
(19:54 -0800)
committer
Evan Martin
<martine@danga.com>
Mon, 29 Nov 2010 03:54:03 +0000
(19:54 -0800)
subprocess.cc
patch
|
blob
|
history
diff --git
a/subprocess.cc
b/subprocess.cc
index 16d376a1a6477f022a8c6ae428339abaf0a5c923..59e05eb688114317216357cf8eb3e75abed119d5 100644
(file)
--- a/
subprocess.cc
+++ b/
subprocess.cc
@@
-64,6
+64,8
@@
void Subprocess::OnFDReady(int fd) {
if (len > 0) {
stream->buf_.append(buf, len);
} else {
+ if (len < 0)
+ err_ = strerror(errno);
close(stream->fd_);
stream->fd_ = -1;
}