Bash-Linux.com : Le SHELL pour les nuls

  Actuellement 50 lignes de commande et 1472 man disponibles
login as: root
root@213.186.33.18's password:
Last login: Sun Feb 12 8:16:23 2012 from 38.107.179.227
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Killpg en anglais

KILLPG(2) Linux Programmer's Manual KILLPG(2)
 
NAME


killpg - send signal to a process group
 
SYNOPSIS


#include int killpg(int pgrp, int sig); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): killpg(): _BSD_SOURCE || _XOPEN_SOURCE >= 500
 
DESCRIPTION


killpg() sends the signal sig to the process group pgrp. See signal(7) for a list of signals. If pgrp is 0, killpg() sends the signal to the calling process's pro- cess group. (POSIX says: If pgrp is less than or equal to 1, the behavior is undefined.) For a process to have permission to send a signal it must either be privileged (under Linux: have the CAP_KILL capability), or the real or effective user ID of the sending process must equal the real or saved set-user-ID of the target process. In the case of SIGCONT it suffices when the sending and receiving processes belong to the same session.
 
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. EPERM The process does not have permission to send the signal to any of the target processes. 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.
 
CONFORMING TO


SVr4, 4.4BSD (the killpg() function call first appeared in 4BSD), POSIX.1-2001.
 
NOTES


There are various differences between the permission checking in BSD- type systems and System V-type systems. See the POSIX rationale for kill(). A difference not mentioned by POSIX concerns the return value EPERM: BSD documents that no signal is sent and EPERM returned when the permission check failed for at least one target process, while POSIX documents EPERM only when the permission check failed for all target processes. On Linux, killpg() is implemented as a library function that makes the call kill(-pgrp, sig).
 
SEE ALSO


getpgrp(2), kill(2), signal(2), capabilities(7), credentials(7)
 
COLOPHON


This page is part of release 3.05 of the Linux man-pages project. A description of the project, and information about reporting bugs, can be found at http://www.kernel.org/doc/man-pages/. Linux 2007-07-26 KILLPG(2)


 Dernières recherches
Man  en anglais Man killpg en anglaisMan  en français Man killpg en français
Man  en anglais Man getcwd en anglaisMan  en français Man getcwd en français
Man  en anglais Man setenv en anglaisMan  en français Man setenv en français
Man  en anglais Man sigvec en anglaisMan  en français Man sigvec en français
Man  en anglais Man capget en anglaisMan  en français Man capget en français
Man  en anglais Man rindex en anglaisMan  en français Man rindex en français
Man  en anglais Man strcmp en anglaisMan  en français Man strcmp en français
Man  en anglais Man strchr en anglaisMan  en français Man strchr en français
Man  en anglais Man fgetwc en anglaisMan  en français Man fgetwc en français
Man  en anglais Man statfs en anglaisMan  en français Man statfs en français
Man  en anglais Man zforce en anglaisMan  en français Man zforce en français
Man  en anglais Man getenv en anglaisMan  en français Man getenv en français
Man  en anglais Man strspn en anglaisMan  en français Man strspn en français
Man  en anglais Man fgetws en anglaisMan  en français Man fgetws en français
Man  en anglais Man atexit en anglaisMan  en français Man atexit en français

 Recherche

Dans ce moteur de recherche, vous pouvez taper directement votre besoin, en une phrase normale, humaine.
Exemple : vous cherchez comment remplacer un mot par un autre dans tous les fichiers d'un certain dossier. Vous pouvez écrire "Comment remplacer un mot par un autre dans tous les fichiers d'un dossier". Le moteur vous ramenera les résultats en fonction de leur pertinence.
Vous pouvez bien sûr ne chercher qu'un seul mot-clé, par exemple "find".
 Toutes les lignes de code
Par popularité
Par fonction
Recherche avancée
 Les logiciels SHELL/SSH
Putty
Astuces Bash
Faire du SHELL avec PHP!
 La doc officielle
Les man Linux en français
Les man Linux en anglais
 Proposer vos bash
Partagez vos lignes!
 Les requêtes
Déposer une requête
Voir/répondre à une requête
 Quelques sites interessants
Bons sites pour apprendre
 Rechercher