summaryrefslogtreecommitdiff
path: root/src/automount.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2010-07-13 00:27:27 +0200
committerLennart Poettering <lennart@poettering.net>2010-07-13 00:27:27 +0200
commitba3e67a78564bf25c5af97ffe2e1a122b193a9cb (patch)
tree8d47f6a421da2660ac090dd526c387b5fc90e744 /src/automount.c
parenta974d58e83e409a92ca916bb9bbce0e457ea896f (diff)
socket: when the socket is supposed to stop, don't accept any connections anymore
Diffstat (limited to 'src/automount.c')
-rw-r--r--src/automount.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/automount.c b/src/automount.c
index 00f3736b2f..e685c96a76 100644
--- a/src/automount.c
+++ b/src/automount.c
@@ -568,6 +568,13 @@ static void automount_enter_runnning(Automount *a) {
dbus_error_init(&error);
+ /* We don't take mount requests anymore if we are supposed to
+ * shut down anyway */
+ if (a->meta.job && a->meta.job->type == JOB_STOP) {
+ automount_send_ready(a, -EHOSTDOWN);
+ return;
+ }
+
mkdir_p(a->where, a->directory_mode);
/* Before we do anything, let's see if somebody is playing games with us? */