-
Notifications
You must be signed in to change notification settings - Fork 5
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Rewrite shell's command traversal, pipes seem to work now
Rewrite traversal of the parsed command chain recursively and start spawning processes from right to left. While at it, juggle the refcounts of the pipe files more carefully so that none of the references get leaked underefed. Fix pipe_read() to check the buffer for data availability repeatedly after a wakeup. We need that because the process can be woken up while there's still nothing to read in the buffer, and we'd end up reading a full buffer of garbage.
- Loading branch information
Showing
2 changed files
with
50 additions
and
51 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters