]> git.ipfire.org Git - thirdparty/systemd.git/commit
manager: try to reexecute as /proc/self/exe too
authorZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Tue, 23 Jun 2026 09:57:30 +0000 (11:57 +0200)
committerZbigniew Jędrzejewski-Szmek <zbyszek@amutable.com>
Thu, 2 Jul 2026 15:19:18 +0000 (17:19 +0200)
commit8985fc5e571a4bfc26ee63dc96e2ff82e5f6794c
treea31113ca4e173f0ae89a6c5e269d6097df08ae06
parent7bff0f09fe8b87bb1d9aa7fd1667c6a7d483d34e
manager: try to reexecute as /proc/self/exe too

If we try to reexecute, and the binary was started from a non-standard
path, this would fail:
  src/core/main.c:2396: Reexecuting.
  src/core/main.c:2240: Failed to execute our own binary /usr/lib/systemd/systemd: No such file or directory
Let's make things more robust by trying /proc/self/exe too.
src/core/main.c