提交 d042ce27 编写于 作者: X xionglei6

modify: ueventd poll a moment by itself

Signed-off-by: Nxionglei6 <xionglei6@huawei.com>
上级 edf39eae
...@@ -21,7 +21,7 @@ ...@@ -21,7 +21,7 @@
#include "init_log.h" #include "init_log.h"
#include "init_socket.h" #include "init_socket.h"
static void PollUeventdSocket(int ueventSockFd) static void PollUeventdSocketTimeout(int ueventSockFd)
{ {
struct pollfd pfd = {}; struct pollfd pfd = {};
pfd.events = POLLIN; pfd.events = POLLIN;
...@@ -72,6 +72,6 @@ int main(int argc, char **argv) ...@@ -72,6 +72,6 @@ int main(int argc, char **argv)
INIT_LOGI("ueventd start to process uevent message"); INIT_LOGI("ueventd start to process uevent message");
ProcessUevent(ueventSockFd, NULL, 0); // Not require boot devices ProcessUevent(ueventSockFd, NULL, 0); // Not require boot devices
} }
PollUeventdSocket(ueventSockFd); PollUeventdSocketTimeout(ueventSockFd);
return 0; return 0;
} }
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册