Skip to content

add getpgrp support in os mod #1914

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 8, 2020
Merged

add getpgrp support in os mod #1914

merged 1 commit into from
May 8, 2020

Conversation

mrmiywj
Copy link
Contributor

@mrmiywj mrmiywj commented May 8, 2020

As title, getpgrp support in os module in UNIX only

Copy link
Contributor

@palaviv palaviv left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good. Thank you again.

@@ -1194,6 +1194,11 @@ fn os_getpgid(pid: u32, vm: &VirtualMachine) -> PyResult {
}
}

#[cfg(unix)]
fn os_getpgrp(vm: &VirtualMachine) -> PyResult {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Again you can just return i32.

@palaviv palaviv merged commit 049412c into RustPython:master May 8, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants