X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafs-supervisor.c;h=7f87adbfa9072534c81df3350867652693bfd244;hb=248f6eafa20476014f4bf12d90b2234c4be7eef2;hp=39f0a5686bd75872c296cdd344807b8b94aa9f15;hpb=58a21f8f9465a20cba3fdfc3abaee866dafc245f;p=src%2Fapp-framework-binder.git diff --git a/src/afs-supervisor.c b/src/afs-supervisor.c index 39f0a568..7f87adbf 100644 --- a/src/afs-supervisor.c +++ b/src/afs-supervisor.c @@ -280,12 +280,12 @@ static void accept_supervision_link(int sock) */ static void listening(void *closure, uint32_t revents, struct fdev *fdev) { - if ((revents & EPOLLIN) != 0) - accept_supervision_link((int)(intptr_t)closure); if ((revents & EPOLLHUP) != 0) { ERROR("supervision socket closed"); exit(1); } + if ((revents & EPOLLIN) != 0) + accept_supervision_link((int)(intptr_t)closure); } /*