chiark
/
gitweb
/
~ianmdlvl
/
elogind.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
cgroup: compare fs paths with path_equal() rather than streq()
[elogind.git]
/
src
/
core
/
job.c
diff --git
a/src/core/job.c
b/src/core/job.c
index d304a16d0651e0c652363c7a9d99bcf0101c7709..85f77e8f0d8335959cbb26a23648f2bf237313b2 100644
(file)
--- a/
src/core/job.c
+++ b/
src/core/job.c
@@
-1088,10
+1088,13
@@
void job_shutdown_magic(Job *j) {
* asynchronous sync() would cause their exit to be
* delayed. */
* asynchronous sync() would cause their exit to be
* delayed. */
- if (
!unit_has_name(j->unit, SPECIAL_SHUTDOWN_TARGET)
)
+ if (
j->type != JOB_START
)
return;
return;
- if (j->type != JOB_START)
+ if (j->unit->manager->running_as != SYSTEMD_SYSTEM)
+ return;
+
+ if (!unit_has_name(j->unit, SPECIAL_SHUTDOWN_TARGET))
return;
if (detect_container(NULL) > 0)
return;
if (detect_container(NULL) > 0)