We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent dac3195 commit 739a2a6Copy full SHA for 739a2a6
graalpython/com.oracle.graal.python/src/com/oracle/graal/python/builtins/modules/PosixModuleBuiltins.java
@@ -334,8 +334,10 @@ int getPid() {
334
public abstract static class GetUidNode extends PythonBuiltinNode {
335
@Specialization
336
int getPid() {
337
- // TODO: this needs to be implemented properly at some point (consider managed execution
338
- // as well)
+ String osName = System.getProperty("os.name");
+ if (osName.contains("Linux")) {
339
+ return (int) new com.sun.security.auth.module.UnixSystem().getUid();
340
+ }
341
return 1000;
342
}
343
0 commit comments