Unix and Linux Discussions Tagged with sending |
|
Thread / Thread Starter |
Last Post |
Replies |
Views |
Forum |
|
|
|
2 |
15,439 |
Web Development |
|
|
|
4 |
3,040 |
Shell Programming and Scripting |
|
|
|
4 |
1,245 |
Shell Programming and Scripting |
|
|
|
5 |
7,074 |
Shell Programming and Scripting |
|
|
|
2 |
3,889 |
Ubuntu |
|
|
|
0 |
2,848 |
Filesystems, Disks and Memory |
|
|
|
0 |
5,358 |
Solaris |
|
|
|
1 |
6,149 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
3,395 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
6,936 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
26,565 |
UNIX for Dummies Questions & Answers |
|
|
|
0 |
1,228 |
UNIX and Linux RSS News |
|
|
|
5 |
7,246 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
3,493 |
UNIX for Dummies Questions & Answers |
|
|
|
8 |
4,277 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
2,866 |
UNIX for Dummies Questions & Answers |
|
|
|
9 |
8,447 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
14,710 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
4,268 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
5,265 |
IP Networking |
|
|
|
1 |
6,048 |
UNIX for Advanced & Expert Users |
|
|
|
20 |
34,683 |
Cybersecurity |
|
|
|
1 |
4,814 |
UNIX for Dummies Questions & Answers |
|
|
|
1 |
17,275 |
UNIX for Advanced & Expert Users |
|
|
|
3 |
10,011 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
4,535 |
Cybersecurity |
|
|
|
2 |
4,621 |
UNIX for Dummies Questions & Answers |
|
|
|
2 |
2,498 |
UNIX for Dummies Questions & Answers |
|
|
|
6 |
4,293 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
10,743 |
UNIX for Dummies Questions & Answers |
|
|
|
5 |
5,589 |
UNIX for Dummies Questions & Answers |
|
|
|
3 |
14,129 |
UNIX for Dummies Questions & Answers |
|
|
|
4 |
28,505 |
How do I send email? |
|
|
|
4 |
4,704 |
UNIX for Dummies Questions & Answers |
KILLPG(2) Linux Programmer's Manual KILLPG(2)
NAME
killpg - send signal to a process group
SYNOPSIS
#include <signal.h>
int killpg(int pgrp, int sig);
DESCRIPTION
Killpg sends the signal sig to the process group pgrp. See sigaction(2) for a list of signals. If pgrp is 0, killpg sends the signal to
the sending process's process group.
The sending process and members of the process group must have the same effective user ID, or the sender must be the super-user. As a sin-
gle special case the continue signal SIGCONT may be sent to any process that is a descendant of the current process.
RETURN VALUE
On success, zero is returned. On error, -1 is returned, and errno is set appropriately.
ERRORS
EINVAL Sig is not a valid signal number.
ESRCH No process can be found in the process group specified by pgrp.
ESRCH The process group was given as 0 but the sending process does not have a process group.
EPERM The sending process is not the super-user and one or more of the target processes has an effective user ID different from that of
the sending process.
CONFORMING TO
SVr4, 4.4BSD (The killpg function call first appeared in 4.0BSD).
SEE ALSO
kill(2), getpgrp(2), signal(2)
BSD Man Page 1993-07-23 KILLPG(2)