Monitor Child w/ waitpid & Fork Shell w/ BG Jobs
This change will modify the way that job statuses are monitored. Rather than using the wait() method on a child, this will use the lower level waitpid() method from the nix crate, enabling the ability to detect and record changes to the child process automatically. This also implements a change that will fork the shell when a command is executed that needs to be run in the background. However, these commands still don't work at the moment due to a parsing issue.
Showing
- Cargo.lock 7 additions, 0 deletionsCargo.lock
- Cargo.toml 5 additions, 4 deletionsCargo.toml
- src/builtins/job_control.rs 0 additions, 5 deletionssrc/builtins/job_control.rs
- src/main.rs 10 additions, 11 deletionssrc/main.rs
- src/shell/flow.rs 1 addition, 2 deletionssrc/shell/flow.rs
- src/shell/job_control.rs 83 additions, 53 deletionssrc/shell/job_control.rs
- src/shell/pipe.rs 60 additions, 18 deletionssrc/shell/pipe.rs
Loading
Please register or sign in to comment