浏览代码

还原spawn (#18)

* 还原spawn

* 还原spawn逻辑
GnoCiYeH 1 年之前
父节点
当前提交
67b5113a81
共有 1 个文件被更改,包括 0 次插入2 次删除
  1. 0 2
      src/std/sys/unix/process/process_unix.rs

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

@@ -157,8 +157,6 @@ impl Command {
             let mut p = unsafe { Process::new(pid, pidfd) };
             let mut p = unsafe { Process::new(pid, pidfd) };
             let mut bytes = [0; 8];
             let mut bytes = [0; 8];
 
 
-            //TODO: 这里直接返回,没有从管道读取子进程状态,后续需更改
-            return Ok((p, ours));
             // loop to handle EINTR
             // loop to handle EINTR
             loop {
             loop {
                 match input.read(&mut bytes) {
                 match input.read(&mut bytes) {