am b20d54b2
: Merge "fix double closing file descriptors"
* commit 'b20d54b2309adee8d192942015740735ded975d3': fix double closing file descriptors
This commit is contained in:
commit
598e833d42
1 changed files with 0 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue