Jeremy Soller hace 6 años
padre
commit
09340bd0f2
Se han modificado 1 ficheros con 2 adiciones y 2 borrados
  1. 2 2
      src/header/unistd/mod.rs

+ 2 - 2
src/header/unistd/mod.rs

@@ -513,9 +513,9 @@ pub extern "C" fn setpgid(pid: pid_t, pgid: pid_t) -> c_int {
     Sys::setpgid(pid, pgid)
 }
 
-// #[no_mangle]
+#[no_mangle]
 pub extern "C" fn setpgrp() -> pid_t {
-    unimplemented!();
+    setpgid(0, 0)
 }
 
 #[no_mangle]