race condition fix: block all signals before decrementing thread count
[musl] / src / unistd / getpgid.c
1 #include <unistd.h>
2 #include "syscall.h"
3
4 pid_t getpgid(pid_t pid)
5 {
6         return syscall1(__NR_getpgid, pid);
7 }