From 73180fc762f015935950f697822710af3f5bd23d Mon Sep 17 00:00:00 2001 From: ManikandanC Date: Fri, 6 Oct 2017 11:37:31 +0530 Subject: Use poll in the dlt-daemon for POSIX compliance The poll system call is now used in the daemon to enable DLT use in POSIX compliant systems. Also added introduced new unregister_app macro to avoid missing of logs in startup buffer. Signed-off-by: Frederic Berat Signed-off-by: ManikandanC Signed-off-by: Saya Sugiura Signed-off-by: S. Hameed --- src/daemon/dlt_daemon_event_handler_types.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'src/daemon/dlt_daemon_event_handler_types.h') diff --git a/src/daemon/dlt_daemon_event_handler_types.h b/src/daemon/dlt_daemon_event_handler_types.h index a2945b4..99a1217 100644 --- a/src/daemon/dlt_daemon_event_handler_types.h +++ b/src/daemon/dlt_daemon_event_handler_types.h @@ -27,7 +27,7 @@ * \file dlt_daemon_event_handler_types.h */ -#include +#include #include "dlt_daemon_connection_types.h" @@ -50,10 +50,10 @@ typedef enum { DLT_TIMER_UNKNOWN } DltTimers; -#define DLT_EPOLL_MAX_EVENTS 10 typedef struct { - int epfd; - struct epoll_event events[DLT_EPOLL_MAX_EVENTS]; + struct pollfd *pfd; + nfds_t nfds; + nfds_t max_nfds; DltConnection *connections; } DltEventHandler; -- cgit v1.2.1