Add support for pipe and poll

This commit is contained in:
LI Qing
2023-03-30 23:43:05 -04:00
committed by Tate, Hongliang Tian
parent 453d2ad0f0
commit 0fc707d38c
20 changed files with 981 additions and 177 deletions

View File

@ -69,14 +69,6 @@ impl ProcessGroup {
self.inner.lock().pgid
}
/// Wake up all processes waiting on polling queue
pub fn wake_all_polling_procs(&self) {
let inner = self.inner.lock();
for (_, process) in &inner.processes {
process.poll_queue().wake_all();
}
}
/// send kernel signal to all processes in the group
pub fn kernel_signal(&self, signal: KernelSignal) {
for (_, process) in &self.inner.lock().processes {