X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fsocket.c;h=e386c7f2971c7cbe9cd0c4749bc9ee80a05c506b;hb=cd3f8b7ddb052ab5e4eab420968bae689db3899a;hp=4443dba0c991b46a51cbd9140d26119127d0ac5c;hpb=cae18e217208735797232eabb83a93470aefe88f;p=elogind.git diff --git a/src/socket.c b/src/socket.c index 4443dba0c..e386c7f29 100644 --- a/src/socket.c +++ b/src/socket.c @@ -1189,6 +1189,8 @@ static void socket_enter_running(Socket *s, int cfd) { /* We don't take connections anymore if we are supposed to * shut down anyway */ if (unit_pending_inactive(UNIT(s))) { + log_debug("Suppressing connection request on %s since unit stop is scheduled.", s->meta.id); + if (cfd >= 0) close_nointr_nofail(cfd); else {