network: process queued remove requests before networkd is stopped
authorYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 23 Oct 2024 19:40:45 +0000 (04:40 +0900)
committerYu Watanabe <watanabe.yu+github@gmail.com>
Wed, 30 Oct 2024 15:34:44 +0000 (00:34 +0900)
commitdb68e990467ffea2b6655e4726856ca7eb32b38d
treeff184db258e6203723d171a602ac1eae94e1e388
parent58ada3eab2b51fd238b48842e7c77aaa4e9fcbf2
network: process queued remove requests before networkd is stopped

This makes networkd process all queued remove requests when a
terminating or restarting signal is received. Otherwise, e.g. DHCPv4
address will not be removed on stop, especially when
KeepConfiguration=no.

Fixes a bug introduced by 85a6f300c14d75d161cbfdb3eaf5af9594400ecd and
its subsequent commits.

Fixes #34837.

Co-authored-by: Will Fancher <elvishjerricco@gmail.com>
src/network/networkd-link.c
src/network/networkd-link.h
src/network/networkd-manager.c
src/network/networkd-manager.h