diff options
author | Lennart Poettering <lennart@poettering.net> | 2010-01-29 06:45:59 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2010-01-29 06:45:59 +0100 |
commit | f94ea366d38fed424200b748cb042ca44f8c8d50 (patch) | |
tree | 6fdd0032d6a667c967e6c82530e5dd83bdd2e18d /socket.c | |
parent | ef734fd6c2ec4e5602bbfe2a0d26dcf39c14d2bf (diff) |
monitor udev for device changes
Diffstat (limited to 'socket.c')
-rw-r--r-- | socket.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -5,7 +5,7 @@ #include <unistd.h> #include <errno.h> #include <fcntl.h> -#include <sys/poll.h> +#include <sys/epoll.h> #include <signal.h> #include "unit.h" @@ -285,7 +285,7 @@ static int socket_watch_fds(Socket *s) { if (p->fd < 0) continue; - if ((r = unit_watch_fd(UNIT(s), p->fd, POLLIN, &p->fd_watch)) < 0) + if ((r = unit_watch_fd(UNIT(s), p->fd, EPOLLIN, &p->fd_watch)) < 0) goto fail; } @@ -634,7 +634,7 @@ static void socket_fd_event(Unit *u, int fd, uint32_t events, Watch *w) { log_debug("Incoming traffic on %s", unit_id(u)); - if (events != POLLIN) + if (events != EPOLLIN) socket_enter_stop_pre(s, false); socket_enter_running(s); |