Lines Matching +full:signal +full:- +full:group
1 // SPDX-License-Identifier: GPL-2.0-or-later
18 #include <signal.h>
28 static uid_t group = 60000; variable
61 signal(SIGUSR1, SIG_DFL); in fork_child()
63 warnx("(pid=%d): Changing to uid=%d, gid=%d", pid, user, group); in fork_child()
65 if (setgid(group) < 0) in fork_child()
66 err(EXIT_FAILURE, "(pid=%d): setgid(%d)", pid, group); in fork_child()
128 child[i] *= -1; in main()
129 childs -= 1; in main()
147 pid, -child[i], WEXITSTATUS(wstatus[i])); in main()
149 warnx("(pid=%d): pid %d killed by signal %d", in main()
150 pid, -child[i], WTERMSIG(wstatus[i])); in main()