Explorar el Código

Patch fix with dragon reach (#19)

* 还原spawn

* 还原spawn逻辑

* 临时解决在spawn锁住的情况,后续需更改
GnoCiYeH hace 1 año
padre
commit
a5a37880a8
Se han modificado 1 ficheros con 2 adiciones y 0 borrados
  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) {