syscall.sh / x86 / setpgid

setpgid

set/get process group

sys_setpgid(pid_t pid, pid_t pgid)
number57 (0x39)
abii386
entry pointsys_setpgid
sinceLinux 3.3
man pagesetpgid(2)
sourceelixir.bootlin.com

Registers

registervalue
eax57, the syscall number
ebxpid_t pid
ecxpid_t pgid
eaxthe return value

Then run int 0x80 to enter the kernel.

Same syscall on other architectures

Get this as JSON: https://api.syscall.sh/v2/syscalls/x86/setpgid