diff options
author | ManikandanC <Manikandan.Chockalingam@in.bosch.com> | 2017-10-06 11:37:31 +0530 |
---|---|---|
committer | Christoph Lipka <clipka@users.noreply.github.com> | 2018-11-30 12:17:59 +0100 |
commit | 73180fc762f015935950f697822710af3f5bd23d (patch) | |
tree | ffcd8407d8ab55d63544af33ade7efd120381728 /src/daemon/dlt_daemon_connection.c | |
parent | 13803189600c724341148af34f33688497d71991 (diff) | |
download | DLT-daemon-73180fc762f015935950f697822710af3f5bd23d.tar.gz |
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 <fberat@de.adit-jv.com>
Signed-off-by: ManikandanC <Manikandan.Chockalingam@in.bosch.com>
Signed-off-by: Saya Sugiura <ssugiura@jp.adit-jv.com>
Signed-off-by: S. Hameed <shameed@jp.adit-jv.com>
Diffstat (limited to 'src/daemon/dlt_daemon_connection.c')
-rw-r--r-- | src/daemon/dlt_daemon_connection.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/daemon/dlt_daemon_connection.c b/src/daemon/dlt_daemon_connection.c index 8a3913a..619811d 100644 --- a/src/daemon/dlt_daemon_connection.c +++ b/src/daemon/dlt_daemon_connection.c @@ -34,7 +34,7 @@ #include <unistd.h> #include <sys/socket.h> -#include <sys/syslog.h> +#include <syslog.h> #include <sys/types.h> #include "dlt_daemon_connection_types.h" @@ -331,7 +331,7 @@ void dlt_connection_destroy(DltConnection *to_destroy) to_destroy->id = 0; close(to_destroy->receiver->fd); dlt_connection_destroy_receiver(to_destroy); - /* connection pointer might be in epoll queue and used even after destroying + /* connection pointer might be in poll queue and used even after destroying * it. To make sure it is not used anymore, connection type is invalidated */ to_destroy->type = DLT_CONNECTION_TYPE_MAX; free(to_destroy); @@ -370,7 +370,7 @@ int dlt_connection_create(DltDaemonLocal *daemon_local, /* No need for the same client to be registered twice * for the same event. * TODO: If another mask can be expected, - * we need it to update the epoll event here. + * we need it to update the poll event here. */ return 0; } |