summaryrefslogtreecommitdiff
path: root/python/runner/terminator.c
diff options
context:
space:
mode:
Diffstat (limited to 'python/runner/terminator.c')
-rw-r--r--python/runner/terminator.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/python/runner/terminator.c b/python/runner/terminator.c
index a994bde..0706957 100644
--- a/python/runner/terminator.c
+++ b/python/runner/terminator.c
@@ -20,10 +20,10 @@ int main(int argc, char* argv[])
return 1;
}
int ret = 0;
- if ((ret = setuid(pw->pw_uid)) != 0)
- fprintf(stderr, "setuid returned %d\n", ret);
if ((ret = setgid(pw->pw_gid)) != 0)
fprintf(stderr, "setgid returned %d\n", ret);
+ if ((ret = setuid(pw->pw_uid)) != 0)
+ fprintf(stderr, "setuid returned %d\n", ret);
pid_t pid = atol(argv[2]);
int signum = atoi(argv[3]);