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 6b9b09c commit 2a3bcc5Copy full SHA for 2a3bcc5
os/os/__init__.py
@@ -60,6 +60,7 @@
60
execvp_ = libc.func("i", "execvp", "PP")
61
kill_ = libc.func("i", "kill", "ii")
62
getenv_ = libc.func("s", "getenv", "P")
63
+ setpgid_ = libc.func("i", "setpgid", "ii")
64
65
66
@@ -237,6 +238,11 @@ def kill(pid, sig):
237
238
r = kill_(pid, sig)
239
check_error(r)
240
241
+def setpgid(pid, pgid):
242
+ r = setpgid_(pid, pgid)
243
+ check_error(r)
244
+ return r
245
+
246
def system(command):
247
r = system_(command)
248
0 commit comments