Jelajahi Sumber

Patch fix with dragon reach (#19)

* 还原spawn

* 还原spawn逻辑

* 临时解决在spawn锁住的情况,后续需更改
GnoCiYeH 1 tahun lalu
induk
melakukan
a5a37880a8
1 mengubah file dengan 2 tambahan dan 0 penghapusan
  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) {