summaryrefslogtreecommitdiff
path: root/src/automount.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/automount.c
parent0238cd03def0dc5ff2c246563372c0d523b86505 (diff)
automount: use unit_pending_inactive() where appropriate
Diffstat (limited to 'src/automount.c')
-rw-r--r--src/automount.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/automount.c b/src/automount.c
index 0ae467cbd4..9447c0d8fc 100644
--- a/src/automount.c
+++ b/src/automount.c
@@ -573,7 +573,8 @@ static void automount_enter_runnning(Automount *a) {
/* 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) {
+ if (unit_pending_inactive(UNIT(a))) {
+ log_debug("Suppressing automount request on %s since unit stop is scheduled.", a->meta.id);
automount_send_ready(a, -EHOSTDOWN);
return;
}