1 2 3 4 5 6 7 8 9 10 11
#include <syscall.h> #include <unistd.h> static inline _syscall2(int,setpgid,pid_t,pid,pid_t,pgid); int setpgrp(void) { return setpgid(0,0); }