ソースを参照

fix(setpgid): move the process to new pgroup

greatbridf 3 ヶ月 前
コミット
d400fb8fdc
1 ファイル変更2 行追加0 行削除
  1. 2 0
      src/kernel/task/process.rs

+ 2 - 0
src/kernel/task/process.rs

@@ -299,6 +299,8 @@ impl Process {
                 return Ok(());
             }
 
+            new_pgroup.add_member(self, procs.as_pos_mut());
+
             new_pgroup
         } else {
             // Create a new process group only if `pgid` matches our `pid`.