X-Git-Url: https://gerrit.automotivelinux.org/gerrit/gitweb?a=blobdiff_plain;f=src%2Fafs-supervisor.c;h=31b8b7c3b6c901f8c1c8a2cbc3d19226876f6d42;hb=51ab7c2f95d6d459302423a57cc617021ef6126d;hp=39f0a5686bd75872c296cdd344807b8b94aa9f15;hpb=58a21f8f9465a20cba3fdfc3abaee866dafc245f;p=src%2Fapp-framework-binder.git diff --git a/src/afs-supervisor.c b/src/afs-supervisor.c index 39f0a568..31b8b7c3 100644 --- a/src/afs-supervisor.c +++ b/src/afs-supervisor.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2016, 2017, 2018 "IoT.bzh" + * Copyright (C) 2016-2019 "IoT.bzh" * Author José Bollo * * Licensed under the Apache License, Version 2.0 (the "License"); @@ -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); }