From: Ian Jackson Date: Sun, 14 Aug 2022 17:48:40 +0000 (+0100) Subject: prefork: shorten an fd description to fit better X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=e12c2577b3b3c1a82a049eeab495e085c4267392;p=chiark-utils.git prefork: shorten an fd description to fit better Signed-off-by: Ian Jackson --- diff --git a/cprogs/prefork-interp.c b/cprogs/prefork-interp.c index 8c032db..af3535a 100644 --- a/cprogs/prefork-interp.c +++ b/cprogs/prefork-interp.c @@ -16,13 +16,13 @@ * makes new listening socket * makes first-instance socketpair * forks setup (script, sock fds indicated in env) - * fd0, fd1, fd2: from-outer-caller + * fd0, fd1, fd2: from-outer * other fd: call(client-end)(fake) * reaps setup (and reports error) * (implicitly releases lock) * * setup (pre-exec) fd0: null, - * fd[12: fd2-from-outer-caller + * fd[12: fd2-from-outer * env fds: listener, call(server-end)(fake) * env fds: orig-fd[01] * close fd: lockfile @@ -34,7 +34,7 @@ * [2] exits * # server (pm) [1] [fd0: null], - * [fd[12: fd2-from-outer-caller] + * [fd[12: fd2-from-outer] * right away, forks one fa-monitor * [2] closes outer caller fds and call(fake) * [server (pm)] fd[012]: null @@ -45,7 +45,7 @@ * * f-a monitor forks executor * closes fd: listener - * [fd[12: fd2-from-outer-caller] + * [fd[12: fd2-from-outer] * [other fds: call(server-end)(fake), syslog] * runs as monitor, below * @@ -64,7 +64,7 @@ * forks executor * * executor sorts out fds: - * fd0, fd1, fd2: from-outer-caller + * fd0, fd1, fd2: from-outer * close fds: call(server-end) * retained fds: syslog * @@ -77,7 +77,7 @@ * reaps executor * reports status via socket * - * [client (C wrapper)] [fd0, fd1, fd2: from-outer-caller] + * [client (C wrapper)] [fd0, fd1, fd2: from-outer] * [other fd: call(client-end)] * receives status, exits appropriately * (if was bad signal, reports to stderr, exits 127)