diff options
author | Nicholas Noll <nbnoll@eml.cc> | 2021-10-20 13:10:54 -0700 |
---|---|---|
committer | Nicholas Noll <nbnoll@eml.cc> | 2021-10-20 13:10:54 -0700 |
commit | 888679027c2e9b43d1485d970df8170ac4fda29f (patch) | |
tree | f46c257e6be1f47f4aa69d31a64643c76457a64b /sys/cmd/rc/exec.h | |
parent | 6d50d5b97d49a74a8faf587ec2bbf234626adf0c (diff) |
Refactored interactivity to track with thread.
Hit a bit of a stopping point. Specifically, the way XAsync runs
currently is by forking the execution context and having the child run
the async code while the parent runs the remainder. The problem with
this architecture is it doesn't interact well with job control. When we
fork, we create a new process group. Thus the Xasync fork becomes the
new leader.
In short, our traversal of the parse tree as to be less "preorder" and
more "in order", i.e. from the leaves up. The "left" command of the
pipeline should be the "leader" of the process group.
Diffstat (limited to 'sys/cmd/rc/exec.h')
-rw-r--r-- | sys/cmd/rc/exec.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/cmd/rc/exec.h b/sys/cmd/rc/exec.h index 9ad0f3d..f85c699 100644 --- a/sys/cmd/rc/exec.h +++ b/sys/cmd/rc/exec.h @@ -22,6 +22,9 @@ void Xsubshell(void); void Xword(void); void Xcount(void); void Xflat(void); +void Xpipe(void); +void Xpipewait(void); +void Xpopredir(void); void Xerror(char*); |