am b20d54b2: Merge "fix double closing file descriptors"

* commit 'b20d54b2309adee8d192942015740735ded975d3':
  fix double closing file descriptors
This commit is contained in:
Nick Kralevich 2011-06-07 16:28:11 -07:00 committed by Android Git Automerger
commit 598e833d42

View file

@ -155,7 +155,6 @@ int logwrap(int argc, const char* argv[], int background)
if (write(fd, text, strlen(text)) < 0) {
LOG(LOG_WARN, "logwrapper",
"Unable to background process (%s)", strerror(errno));
close(fd);
}
close(fd);
} else {