summaryrefslogtreecommitdiff
path: root/src/socket.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2011-01-26 02:55:35 +0100
committerLennart Poettering <lennart@poettering.net>2011-01-26 02:55:35 +0100
commit5d909e3ec3f502f1d33d0070d8a7a5755e7615d8 (patch)
tree9255c14f9a7ebd409c359f8c0d8ab18dbe51777d /src/socket.c
parent0238cd03def0dc5ff2c246563372c0d523b86505 (diff)
automount: use unit_pending_inactive() where appropriate
Diffstat (limited to 'src/socket.c')
-rw-r--r--src/socket.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/socket.c b/src/socket.c
index 4443dba0c9..e386c7f297 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 {