Browse Source

Patch fix with dragon reach (#19)

* 还原spawn

* 还原spawn逻辑

* 临时解决在spawn锁住的情况,后续需更改
GnoCiYeH 1 year ago
parent
commit
a5a37880a8
1 changed files with 2 additions and 0 deletions
  1. 2 0
      src/std/sys/unix/process/process_unix.rs

+ 2 - 0
src/std/sys/unix/process/process_unix.rs

@@ -157,6 +157,8 @@ impl Command {
             let mut p = unsafe { Process::new(pid, pidfd) };
             let mut bytes = [0; 8];
 
+            // TODO: 在DragonOS管道读取数据时拿不到锁
+            return Ok((p, ours));
             // loop to handle EINTR
             loop {
                 match input.read(&mut bytes) {