diff options
author | Yu Watanabe <watanabe.yu+github@gmail.com> | 2023-01-10 18:20:04 +0900 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2023-01-10 12:06:49 +0100 |
commit | 5afaf4071208e1b836e2c6693752e2fb3161d1c5 (patch) | |
tree | 2de38be8c71968b46a30f1cdf20294b06b043b35 /src | |
parent | 8d4f1337e89eee222ff2e138980681d64e25c053 (diff) | |
download | systemd-5afaf4071208e1b836e2c6693752e2fb3161d1c5.tar.gz |
shutdown: propagate the original errno
Follow-up for b293bb23162534e0260ed07357c2478655541166.
Diffstat (limited to 'src')
-rw-r--r-- | src/shutdown/umount.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/shutdown/umount.c b/src/shutdown/umount.c index 13a80b8e7f..dc662a5812 100644 --- a/src/shutdown/umount.c +++ b/src/shutdown/umount.c @@ -638,7 +638,7 @@ static int remount_with_timeout(MountPoint *m, bool last_try) { if (read(pfd[0], &r, sizeof(r)) == sizeof(r)) log_debug_errno(r, "Remounting '%s' failed abnormally, child process " PID_FMT " failed: %m", m->path, pid); else - log_debug_errno(r, "Remounting '%s' failed abnormally, child process " PID_FMT " aborted or exited non-zero.", m->path, pid); + r = log_debug_errno(EPROTO, "Remounting '%s' failed abnormally, child process " PID_FMT " aborted or exited non-zero.", m->path, pid); TAKE_PID(pid); /* child exited (just not as we expected) hence don't kill anymore */ } else if (r < 0) log_error_errno(r, "Remounting '%s' failed unexpectedly, couldn't wait for child process " PID_FMT ": %m", m->path, pid); |