From 888679027c2e9b43d1485d970df8170ac4fda29f Mon Sep 17 00:00:00 2001 From: Nicholas Noll Date: Wed, 20 Oct 2021 13:10:54 -0700 Subject: 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. --- sys/cmd/rc/exec.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'sys/cmd/rc/exec.h') 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*); -- cgit v1.2.1