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: Wed May 30 7:38:58 2012 from 38.107.179.230
[root@bash-linux ~] # echo "Bienvenue sur Bash-Linux.com"_
 Manuel des commandes UNIX (man) Version anglaise

Indiquez la fonction :

Man Rt_sigqueueinfo en anglais

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


sigqueue, rt_sigqueueinfo - queue a signal and data to a process
 
SYNOPSIS


#include int sigqueue(pid_t pid, int sig, const union sigval value); Feature Test Macro Requirements for glibc (see feature_test_macros(7)): sigqueue(): _POSIX_C_SOURCE >= 199309L
 
DESCRIPTION


sigqueue() sends the signal specified in sig to the process whose PID is given in pid. The permissions required to send a signal are the same as for kill(2). As with kill(2), the null signal (0) can be used to check if a process with a given PID exists. The value argument is used to specify an accompanying item of data (either an integer or a pointer value) to be sent with the signal, and has the following type: union sigval { int sival_int; void *sival_ptr; }; If the receiving process has installed a handler for this signal using the SA_SIGINFO flag to sigaction(2), then it can obtain this data via the si_value field of the siginfo_t structure passed as the second argument to the handler. Furthermore, the si_code field of that struc- ture will be set to SI_QUEUE.
 
RETURN VALUE


On success, sigqueue() returns 0, indicating that the signal was suc- cessfully queued to the receiving process. Otherwise -1 is returned and errno is set to indicate the error.
 
ERRORS


EAGAIN The limit of signals which may be queued has been reached. (See signal(7) for further information.) EINVAL sig was invalid. EPERM The process does not have permission to send the signal to the receiving process. For the required permissions, see kill(2). ESRCH No process has a PID matching pid.
 
VERSIONS


This system call first appeared in Linux 2.2.
 
CONFORMING TO


POSIX.1-2001.
 
NOTES


If this function results in the sending of a signal to the process that invoked it, and that signal was not blocked by the calling thread, and no other threads were willing to handle this signal (either by having it unblocked, or by waiting for it using sigwait(3)), then at least some signal must be delivered to this thread before this function returns. On Linux, the underlying system call is actually named rt_sigqueue- info(), and differs in its third argument, which is the siginfo_t structure that will be supplied to the receiving process's signal han- dler or returned by the receiving process's sigtimedwait(2) call. Inside the glibc sigqueue() wrapper, this argument, info, is initial- ized as follows: info.si_signo = sig; /* argument supplied to sigqueue() */ info.si_code = SI_QUEUE; info.si_pid = getpid(); /* Process ID of sender */ info.si_uid = getuid(); /* Real UID of sender */ info.si_value = val; /* argument supplied to sigqueue() */
 
SEE ALSO


kill(2), sigaction(2), signal(2), sigwait(3), signal(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 SIGQUEUE(2)


 Dernières recherches
Man  en anglais Man rt_sigqueueinfo en anglaisMan  en français Man rt_sigqueueinfo en français
Man  en anglais Man rt_sigprocmask en anglaisMan  en français Man rt_sigprocmask en français
Man  en anglais Man rt_sigpending en anglaisMan  en français Man rt_sigpending en français
Man  en anglais Man rt_sigaction en anglaisMan  en français Man rt_sigaction en français
Man  en anglais Man rsh en anglaisMan  en français Man rsh en français
Man  en anglais Man rsautl en anglaisMan  en français Man rsautl en français
Man  en anglais Man rsa en anglaisMan  en français Man rsa en français
Man  en anglais Man rpmatch en anglaisMan  en français Man rpmatch en français
Man  en anglais Man rpcinfo en anglaisMan  en français Man rpcinfo en français
Man  en anglais Man round en anglaisMan  en français Man round en français
Man  en anglais Man rmdir en anglaisMan  en français Man rmdir en français
Man  en anglais Man rlogin en anglaisMan  en français Man rlogin en français
Man  en anglais Man rewind en anglaisMan  en français Man rewind en français
Man  en anglais Man rev en anglaisMan  en français Man rev en français
Man  en anglais Man resize_reiserfs en anglaisMan  en français Man resize_reiserfs 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