diff options
author | Lennart Poettering <lennart@poettering.net> | 2018-11-14 11:01:28 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2018-11-16 15:22:48 +0100 |
commit | 0e2b4a822e53be021899fb1def11bf9fd6cb6d67 (patch) | |
tree | d70f7dc4b3ba18c2848d0947b2873335947c8abc /src/core/job.c | |
parent | a69b3872acc279f30528ee2a941bda13dcc1170b (diff) | |
download | systemd-0e2b4a822e53be021899fb1def11bf9fd6cb6d67.tar.gz |
job: add two explanatory comments
Diffstat (limited to 'src/core/job.c')
-rw-r--r-- | src/core/job.c | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/core/job.c b/src/core/job.c index 3826fb354f..48d60af82b 100644 --- a/src/core/job.c +++ b/src/core/job.c @@ -563,7 +563,7 @@ static void job_log_begin_status_message(Unit *u, uint32_t job_id, JobType t) { if (!IN_SET(t, JOB_START, JOB_STOP, JOB_RELOAD)) return; - if (log_on_console()) + if (log_on_console()) /* Skip this if it would only go on the console anyway */ return; /* We log status messages for all units and all operations. */ @@ -643,8 +643,9 @@ static int job_perform_on_unit(Job **j) { assert_not_reached("Invalid job type"); } - /* Log if the job still exists and the start/stop/reload function - * actually did something. */ + /* Log if the job still exists and the start/stop/reload function actually did something. Note that this means + * for units for which there's no 'activating' phase (i.e. because we transition directly from 'inactive' to + * 'active') we'll possibly skip the "Starting..." message. */ *j = manager_get_job(m, id); if (*j && r > 0) job_emit_begin_status_message(u, id, t); |