X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafs-supervisor.c;h=31b8b7c3b6c901f8c1c8a2cbc3d19226876f6d42;hb=refs%2Fchanges%2F02%2F21902%2F1;hp=d36a3408774b871f2402c7c7ec441f07e17ef8f3;hpb=6dfeafe7e4fa582b3db3f950136bc97f8611fc6d;p=src%2Fapp-framework-binder.git diff --git a/src/afs-supervisor.c b/src/afs-supervisor.c index d36a3408..31b8b7c3 100644 --- a/src/afs-supervisor.c +++ b/src/afs-supervisor.c @@ -282,7 +282,7 @@ 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) { + else if ((revents & EPOLLHUP) != 0) { ERROR("supervision socket closed"); exit(1); }