[systemd-devel] Why are the priorities of stdout and stderr the same

Nils Kattenbeck nilskemail at gmail.com
Tue Aug 29 17:47:10 UTC 2023


Hi, At least for simple cases you can use systemd-cat which allows
setting different priorities for stdout and stderr. It even explicitly
states that doing so will lose the ordering guarantees which are only
possible when attaching stdout and stderr to the same fd (as Lennart
said).

Greetings
Nils

On Tue, Aug 29, 2023 at 2:10 PM Cecil Westerhof <cldwesterhof at gmail.com> wrote:
>
> Op di 29 aug 2023 om 11:58 schreef Lennart Poettering <lennart at poettering.net>:
>>
>> On Di, 29.08.23 11:56, Cecil Westerhof (cldwesterhof at gmail.com) wrote:
>> > > I agree with that usecase, and we have discussed this many times
>> > > before, but we couldn#t come up with a nice way to make everything
>> > > work: proper ordering and distintion of stdout/stderr.
>> >
>> > I agree that the default behaviour is the right one. But why not give
>> > people the possibility to override this behaviour? When they override it
>> > themselves, they cannot complain that they lose ordering.
>>
>> We are generally conservative when providing mechanisms that are too
>> glaringly broken. Even if they are opt-in.
>
>
> OK. Thanks for your patience.
>
> --
> Cecil Westerhof


More information about the systemd-devel mailing list