]> git.ipfire.org Git - thirdparty/systemd.git/commit
core: do not reset tty if there's no tty configured
authorLuca Boccassi <bluca@debian.org>
Wed, 25 Oct 2023 14:15:02 +0000 (15:15 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 26 Oct 2023 07:13:05 +0000 (09:13 +0200)
commit43efbc3959d489c889e1c8669f8ded0cddee20b9
treecb9348c6e9295060079c34ce148b2dfc40973258
parent9e15e24bdbc695fe4fb65155b4e3bf73db34152b
core: do not reset tty if there's no tty configured

Otherwise a lock is taken, which can be taken by multiple units at the
same time, depending on each other, causing a deadlock.

Fixes https://github.com/systemd/systemd/issues/29682
src/core/execute.c