On Mon, Feb 5, 2024, 14:54 Lennart Poettering <lennart@xxxxxxxxxxxxxx> wrote:
On So, 04.02.24 00:06, David Timber (dxdt@xxxxxxxxxxxx) wrote:
> 2: How do I get Systemd to freeze to test such program? I mean, if I kill
> Systemd, the kernel would crash so I have to somehow tell Systemd to freeze?
Not really, the kernel blocks SIGSTOP for PID1.
Attaching gdb to pid1 should do the job.