am db3eb684: am e657e0c2: am 1a2bdd6f: Merge "liblog: fix fd leakage"

* commit 'db3eb6844c361acff2a0f78325d8227695bb40b5':
  liblog: fix fd leakage
This commit is contained in:
Nick Kralevich 2013-03-15 17:10:34 +00:00 committed by Android Git Automerger
commit c99742b54e
1 changed files with 3 additions and 1 deletions

View File

@ -24,6 +24,8 @@
#include <string.h>
#include <stdlib.h>
#include <stdarg.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <cutils/logger.h>
#include <cutils/logd.h>
@ -37,7 +39,7 @@
#define log_writev(filedes, vector, count) fakeLogWritev(filedes, vector, count)
#define log_close(filedes) fakeLogClose(filedes)
#else
#define log_open(pathname, flags) open(pathname, flags)
#define log_open(pathname, flags) open(pathname, (flags) | O_CLOEXEC)
#define log_writev(filedes, vector, count) writev(filedes, vector, count)
#define log_close(filedes) close(filedes)
#endif