From: Ian Jackson Date: Sat, 20 Aug 2022 15:21:38 +0000 (+0100) Subject: prefork-interp: diagrams X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;ds=sidebyside;h=40e59f1526d31f3a2ef89bf8b6f8710773e3097b;p=chiark-utils.git prefork-interp: diagrams Signed-off-by: Ian Jackson --- diff --git a/cprogs/prefork-interp.c b/cprogs/prefork-interp.c index 2e7f42e..fb45ca0 100644 --- a/cprogs/prefork-interp.c +++ b/cprogs/prefork-interp.c @@ -19,14 +19,6 @@ State during service execution, process parentage and key fds - ---- pipes, sockets - 012 descriptors - -==- fds shared - || process parentage - && session leader (daemon) - & process group leader - - CALLER || || @@ -49,21 +41,17 @@ \ \ 2 || | \ 1 EXECUTOR 0 + ---- pipes, sockets + 012 descriptors + -==- fds shared + || process parentage + && session leader (daemon) + & process group leader *************************************************************************** Control flow and causality - | - \ / process control flow - ... < > causes mediated by fds or other IPC etc. - && session leader (daemon) - & process group leader - # language/implementation boundary - *1 line continued elsewhere - event? condition - ______ process termination (after reaping, if shown) - - CALLER | |fork/exec @@ -161,6 +149,15 @@ # send exit status # # _____SIGPIPE______ # + | - \ / process control flow + ... < > causes mediated by fds or other IPC etc. + && session leader (daemon) + & process group leader + # language/implementation boundary + *1 line continued elsewhere + event? condition + ______ process termination (after reaping, if shown) + *************************************************************************** Sequence of events and fd pluming.