<feed xmlns='http://www.w3.org/2005/Atom'>
<title>procd/jail-status.h, branch master</title>
<subtitle>OpenWrt service / process manager</subtitle>
<id>https://git.openwrt.org/project/procd/atom?h=master</id>
<link rel='self' href='https://git.openwrt.org/project/procd/atom?h=master'/>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/'/>
<updated>2026-10-18T11:25:50Z</updated>
<entry>
<title>jail: report state changes to procd on a status socket</title>
<updated>2026-10-18T11:25:50Z</updated>
<author>
<name>Daniel Golle</name>
</author>
<published>2026-10-15T11:28:46Z</published>
<link rel='alternate' type='text/html' href='https://git.openwrt.org/project/procd/commit/?id=b9b0e3a192c3276c0d3d932f76061e3d50c6077b'/>
<id>urn:sha1:b9b0e3a192c3276c0d3d932f76061e3d50c6077b</id>
<content type='text'>
procd only learns that the process it started for a container exited,
and ujail stays alive in the stopped state until the container is
deleted, so procd can tell neither whether the container was created
and its payload started nor that the payload died.

When descriptor 3 is a socket at startup, take it as the status socket
procd hands over, mark it close-on-exec so that hooks and the payload
never inherit it, and keep it across the restart re-execution. Each
instance.ready, instance.running and stop or create failure is sent as
one struct jail_status record of type, flags (reaped, started,
requested, escalated, restarting, registered), exit status and payload
runtime in seconds, defined in jail-status.h for both sides. A send
uses MSG_NOSIGNAL, so a peer that has gone away cannot kill ujail.

Signed-off-by: Daniel Golle &lt;daniel@makrotopia.org&gt;
</content>
</entry>
</feed>
