about summary refs log tree commit diff
path: root/src/unistd/setgid.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/unistd/setgid.c')
-rw-r--r--src/unistd/setgid.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/unistd/setgid.c b/src/unistd/setgid.c
index e98a2982..b54d2b22 100644
--- a/src/unistd/setgid.c
+++ b/src/unistd/setgid.c
@@ -4,6 +4,5 @@
 
 int setgid(gid_t gid)
 {
-	if (libc.rsyscall) return libc.rsyscall(__NR_setgid, gid, 0, 0, 0, 0, 0);
-	return syscall(SYS_setgid, gid);
+	return __rsyscall(__NR_setgid, gid, 0, 0, 0, 0, 0);
 }