File tree 1 file changed +6
-0
lines changed 1 file changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -1194,6 +1194,11 @@ fn os_getpgid(pid: u32, vm: &VirtualMachine) -> PyResult {
1194
1194
}
1195
1195
}
1196
1196
1197
+ #[ cfg( unix) ]
1198
+ fn os_getpgrp ( vm : & VirtualMachine ) -> PyResult {
1199
+ Ok ( vm. new_int ( unistd:: getpgrp ( ) . as_raw ( ) ) )
1200
+ }
1201
+
1197
1202
#[ cfg( all( unix, not( target_os = "redox" ) ) ) ]
1198
1203
fn os_getsid ( pid : u32 , vm : & VirtualMachine ) -> PyResult {
1199
1204
match unistd:: getsid ( Some ( Pid :: from_raw ( pid as i32 ) ) ) {
@@ -1620,6 +1625,7 @@ fn extend_module_platform_specific(vm: &VirtualMachine, module: &PyObjectRef) {
1620
1625
"getegid" => ctx. new_function( os_getegid) ,
1621
1626
"getpgid" => ctx. new_function( os_getpgid) ,
1622
1627
"getuid" => ctx. new_function( os_getuid) ,
1628
+ "getpgrp" => ctx. new_function( os_getpgrp) ,
1623
1629
"geteuid" => ctx. new_function( os_geteuid) ,
1624
1630
"pipe" => ctx. new_function( os_pipe) , //TODO: windows
1625
1631
"set_blocking" => ctx. new_function( os_set_blocking) ,
You can’t perform that action at this time.
0 commit comments