<html>
<head>
<base href="https://bugs.freedesktop.org/" />
</head>
<body>
<p>
<div>
<b><a class="bz_bug_link
bz_status_NEW "
title="NEW - writes to stdout (via journald) result in -EPIPE after systemd-journald.service restart"
href="https://bugs.freedesktop.org/show_bug.cgi?id=84923#c4">Comment # 4</a>
on <a class="bz_bug_link
bz_status_NEW "
title="NEW - writes to stdout (via journald) result in -EPIPE after systemd-journald.service restart"
href="https://bugs.freedesktop.org/show_bug.cgi?id=84923">bug 84923</a>
from <span class="vcard"><a class="email" href="mailto:danielkza2@gmail.com" title="Daniel Miranda <danielkza2@gmail.com>"> <span class="fn">Daniel Miranda</span></a>
</span></b>
<pre>Please correct me if I'm spouting absolute nonsense, but I wonder if it would
be possible to fix this in journald with something like the following on
restart:
- journald: stop reading from the service output descriptors
- journald: start listening on a UNIX socket (lets call it the dump socket)
- journald: Spawn a secondary process which double forks
- aux: Connect to the dump socket, and start listening on a restore socket
- journald: pass the FDs over to the dump socket and possibly a serialized form
of state, close the FDs, then exit
- new journald: Check for the existence of the dump socket. If it exists, grab
back the state and the FDs, and signal the aux process to close
- new journald: Resume operating normally</pre>
</div>
</p>
<hr>
<span>You are receiving this mail because:</span>
<ul>
<li>You are the QA Contact for the bug.</li>
<li>You are the assignee for the bug.</li>
</ul>
</body>
</html>