]> git.ipfire.org Git - thirdparty/systemd.git/commit
core/main: correct retval for reexec/switch-root/soft-reboot 36669/head
authorMike Yuan <me@yhndnzj.com>
Wed, 5 Mar 2025 17:35:50 +0000 (18:35 +0100)
committerMike Yuan <me@yhndnzj.com>
Sat, 8 Mar 2025 19:49:30 +0000 (20:49 +0100)
commit590e0e3bacb012bc86ff46f8dbe3f1b415e9cafd
tree690ba5fa9f081f351504bf735c4db0e0e7365a5d
parent93e19483dc9fae94d713d036ecee669450bd002d
core/main: correct retval for reexec/switch-root/soft-reboot

For these objectives we ought to execve() at the end, i.e. if we
ever hit the return path something went wrong in do_reexecute().
Let's properly report that via retval.
src/core/main.c