Home
last modified time | relevance | path

Searched refs:g_Fd (Results 1 – 1 of 1) sorted by relevance

/base/hiviewdfx/faultloggerd/common/dfxlog/
Ddfx_log.cpp38 static int g_Fd = -1; variable
47 if (UNLIKELY(g_Fd < 0)) { in LogToDmesg()
48 g_Fd = open("/dev/kmsg", O_WRONLY, S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP); in LogToDmesg()
53 close(g_Fd); in LogToDmesg()
54 g_Fd = -1; in LogToDmesg()
57 if (write(g_Fd, logInfo, strlen(logInfo)) < 0) { in LogToDmesg()
58 close(g_Fd); in LogToDmesg()
59 g_Fd = -1; in LogToDmesg()