commit | 06aaa410962ec14cddcc8a6efed203a48cbd3653 | [log] [tgz] |
---|---|---|
author | Robert CH Chou <Robert_CH_Chou@acer.com.tw> | Mon Jun 06 21:32:45 2011 +0800 |
committer | Robert CH Chou <Robert_CH_Chou@acer.com.tw> | Mon Jun 06 21:32:45 2011 +0800 |
tree | e3b618c033315545dd5cb6867ab9ee7da65fb4da | |
parent | 9cb6e501f17ec2a511d942c833ea51a53bcd7249 [diff] |
fix double closing file descriptors Change-Id: I243628b77a0b7b138785167ccb5520e1a9374a78
diff --git a/logwrapper.c b/logwrapper.c index b7d2f68..13c076d 100644 --- a/logwrapper.c +++ b/logwrapper.c
@@ -155,7 +155,6 @@ if (write(fd, text, strlen(text)) < 0) { LOG(LOG_WARN, "logwrapper", "Unable to background process (%s)", strerror(errno)); - close(fd); } close(fd); } else {