am db3eb684: am e657e0c2: am 1a2bdd6f: Merge "liblog: fix fd leakage"
* commit 'db3eb6844c361acff2a0f78325d8227695bb40b5': liblog: fix fd leakage
This commit is contained in:
commit
c99742b54e
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue