X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Funistd%2Fsetpgid.c;h=061606951d4f170ad9bf80b31ee3414a12c64bac;hb=5652d70054daf3c2c9b6d475fdf9d24a940e51aa;hp=748d2907230fb6421a2c304ccf3ba783e2a89311;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/unistd/setpgid.c b/src/unistd/setpgid.c index 748d2907..06160695 100644 --- a/src/unistd/setpgid.c +++ b/src/unistd/setpgid.c @@ -1,7 +1,7 @@ #include #include "syscall.h" -pid_t setpgid(pid_t pid, pid_t pgid) +int setpgid(pid_t pid, pid_t pgid) { - return syscall2(__NR_setpgid, pid, pgid); + return syscall(SYS_setpgid, pid, pgid); }