[systemd-devel] soft-reboot and surviving it

Luca Boccassi luca.boccassi at gmail.com
Sat Apr 20 18:21:37 UTC 2024


On Sat, 20 Apr 2024 at 01:45, Cristian Rodríguez
<crrodriguez at opensuse.org> wrote:
>
> On Fri, Apr 19, 2024 at 6:17 AM Thorsten Kukuk <kukuk at suse.com> wrote:
> >
> > On Fri, Apr 19, 2024 at 11:48 AM Luca Boccassi <luca.boccassi at gmail.com> wrote:
> >
> > > However, logging should work out of the box as long as the journal is
> > > used, what problem are you seeing exactly?
> >
> > Starting around the shutdown and new start of systemd-journald during
> > soft-reboot, all writes to stderr will result in an error (or create
> > SIGPIPE if this is not disabled).
>
> ugh. That's bad.. Did you identify what component does not set MSG_NOSIGNAL ?
> afaik nothing should ever be closing a running program's stderr and
> anything that happens after is undefined .
> Posix says one may only close it after the last atexit() handler is run.

Haven't seen that issue with my programs. Do you have a reproducer?


More information about the systemd-devel mailing list