Download   Online Shop   Red Hat Network
Home  |  Products  |  Shop  |  Services  |  Training  |  Support   
Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3)

Manpage of KILLPG

KILLPG

Section: Linux Programmer's Manual (3)
Updated: April 4, 2025
Index  

NAME

killpg - send signal to all members of a process group.  

SYNOPSIS

#include <signal.h>
int killpg(pid_t pidgrp, int signal);
 

DESCRIPTION

The killpg() function causes signal signal to be sent to all the processes in the process group pidgrp or to the processes' own process group if pidgrp is equal to zero.

It is equivalent to

kill(-pidgrp,signal);
 

RETURN VALUE

The value returned is -1 on error, or 0 for success.  

ERRORS

Errors are returned in errno and can be one of the following:
EINVAL
for an invalid signal,
ESRCH
for a process group which does not exist, and
EPERM
if the userid of the calling process is not equal to that of the process the signal is sent to, and the userid is not that of the superuser.
 

CONFORMING TO

???  

SEE ALSO


 

Index

NAME
SYNOPSIS
DESCRIPTION
RETURN VALUE
ERRORS
CONFORMING TO
SEE ALSO

This document was created by using the manual pages.
Time: 11:58:04 GMT, March 24, 2025

 

 
 
Search for:  on    Powered by Google
Products & Services   :   Download   :   Support   :   Training   :   Partners & Programs
© 2000 Red Hat, Inc. All right reserved.       About Red Hat   :   Legal statement   :   Privacy statement   :   Y2K statement   :   Contact Red Hat