summaryrefslogtreecommitdiff
path: root/doc/s6-fghack.html
diff options
context:
space:
mode:
authorLaurent Bercot <ska-skaware@skarnet.org>2023-09-12 03:36:09 +0000
committerLaurent Bercot <ska@appnovation.com>2023-09-12 03:36:09 +0000
commit8e8d652a5461a4616c680ae96ffc5b1fc0b40188 (patch)
treea46ce3fdcfcc313c47a4524a490e20b94e47181b /doc/s6-fghack.html
parent970bbeb622573a80381f0f32e6f287195182c0e0 (diff)
downloads6-8e8d652a5461a4616c680ae96ffc5b1fc0b40188.tar.xz
Defork s6-fghack
Signed-off-by: Laurent Bercot <ska@appnovation.com>
Diffstat (limited to 'doc/s6-fghack.html')
-rw-r--r--doc/s6-fghack.html7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/s6-fghack.html b/doc/s6-fghack.html
index 3f172ef..666448b 100644
--- a/doc/s6-fghack.html
+++ b/doc/s6-fghack.html
@@ -30,12 +30,13 @@ s6-fghack is an anti-backgrounding tool.
<ul>
<li> s6-fghack opens a lot of file descriptors (all writing to a single pipe). </li>
- <li> Then it forks and executes <em>prog...</em>. </li>
+ <li> Then it spawns <em>prog...</em> as a child. </li>
<li> If something gets written on one of those descriptors, it's a bug in <em>prog</em>.
s6-fghack then complains and exits 102. </li>
<li> Unless <em>prog...</em> goes out of its way to close descriptors it does not know about,
-s6-fghack is able to detect when <em>prog...</em> exits. It exits with the same exit
-code (or 111 if <em>prog...</em> has crashed). </li>
+s6-fghack is able to detect when <em>prog...</em> exits. It exits with an
+<a href="//skarnet.org/software/execline/exitcodes.html">approximation</a> of the same exit
+code. </li>
</ul>
<h2> Notes </h2>