pid1: properly propagate errors from device_setup_unit()
authorLennart Poettering <lennart@poettering.net>
Wed, 2 Jun 2021 13:31:50 +0000 (15:31 +0200)
committerLennart Poettering <lennart@poettering.net>
Thu, 3 Jun 2021 13:01:05 +0000 (15:01 +0200)
commit9951c8df1e8c10fb97e3509f3adafaf5585c9fcb
treed318ce5fb47fd14d4e6aedb772afe7157d96392e
parentad172d19d5ef8b5a3631a8484cc3d1a28dba26c2
pid1: properly propagate errors from device_setup_unit()

We want to propagate errors here, since we want to make dependent on the
success of creating the main device unit the creation of the auxiliary
device units. Thus if we suppress errors here we might end up in exotic
corner cases in a situation were we create the auxiliary ("following")
device units without the primary one.
src/core/device.c