.\" -*- coding: UTF-8 -*- .\" Copyright (c) 2005 Michael Kerrisk .\" based on earlier work by faith@cs.unc.edu and .\" Mike Battersby .\" .\" %%%LICENSE_START(VERBATIM) .\" Permission is granted to make and distribute verbatim copies of this .\" manual provided the copyright notice and this permission notice are .\" preserved on all copies. .\" .\" Permission is granted to copy and distribute modified versions of this .\" manual under the conditions for verbatim copying, provided that the .\" entire resulting derived work is distributed under the terms of a .\" permission notice identical to this one. .\" .\" Since the Linux kernel and libraries are constantly changing, this .\" manual page may be incorrect or out-of-date. The author(s) assume no .\" responsibility for errors or omissions, or for damages resulting from .\" the use of the information contained herein. The author(s) may not .\" have taken the same level of care in the production of this manual, .\" which is licensed free of charge, as they might when working .\" professionally. .\" .\" Formatted or processed versions of this manual, if unaccompanied by .\" the source, must acknowledge the copyright and authors of this work. .\" %%%LICENSE_END .\" .\" 2005-09-15, mtk, Created new page by splitting off from sigaction.2 .\" .\"******************************************************************* .\" .\" This file was generated with po4a. Translate the source file. .\" .\"******************************************************************* .TH SIGSUSPEND 2 "6 mars 2019" Linux "Manuel du programmeur Linux" .SH NOM sigsuspend, rt_sigsuspend \- Attendre un signal .SH SYNOPSIS \fB#include \fP .PP \fBint sigsuspend(const sigset_t *\fP\fImask\fP\fB);\fP .PP .RS -4 Exigences de macros de test de fonctionnalités pour la glibc (consulter \fBfeature_test_macros\fP(7))\ : .RE .PP .ad l \fBsigsuspend\fP()\ : _POSIX_C_SOURCE .ad b .SH DESCRIPTION \fBsigsuspend\fP() remplace temporairement le masque de signal du thread appelant par le msque donné par \fImask\fP, puis il suspend le thread jusqu'à ce qu'arrive un signal dont l'action consiste à appeler un gestionnaire de signal ou à terminer un processus. .PP Si le signal termine le processus, \fBsigsuspend\fP() ne retourne pas à l'appelant. Si le signal est intercepté, \fBsigsuspend\fP() retourne après l'exécution du gestionnaire, et le masque de signaux bloqués est restauré à sa valeur précédant l'appel à \fBsigsuspend\fP(). .PP Il n'est pas possible de bloquer \fBSIGKILL\fP ou \fBSIGSTOP\fP\ ; spécifier ces signaux dans \fImask\fP n'a aucun effet sur le masque de signaux du thread. .SH "VALEUR RENVOYÉE" \fBsigsuspend\fP() renvoie toujours \-1, et \fIerrno\fP est normalement positionné à \fBEINTR\fP. .SH ERREURS .TP \fBEFAULT\fP \fImask\fP pointe en\-dehors de l'espace d'adressage accessible. .TP \fBEINTR\fP L'appel a été interrompu par des signaux \fBsignal\fP(7). .SH CONFORMITÉ POSIX.1\-2001, POSIX.1\-2008. .SH NOTES En général, \fBsigsuspend\fP() est utilisé conjointement avec \fBsigprocmask\fP(2) pour empêcher l'arrivée d'un signal pendant l'exécution d'une section de code critique. L'appelant commence par bloquer les signaux avec \fBsigprocmask\fP(2). Après la fin de la section critique, l'appelant attend les signaux avec \fBsigsuspend\fP() utilisé avec le masque renvoyé par \fBsigprocmask\fP(2) (dans l'argument \fIoldset\fP). .PP .\" Consultez \fBsigsetops\fP(3) pour les détails concernant les ensembles de signaux. .SS "différences entre bibliothèque C et noyau" .\" L'appel système Linux d'origine s'appelait \fBsigsuspend\fP(). Toutefois, avec l'arrivée des signaux en temps réel dans Linux 2.2 et de la taille figée, le type \fIsigset_t\fP 32 bits pris en charge par cet appel système ne convenait plus à cet objectif. Par conséquent, un nouvel appel système \fBrt_sigsuspend\fP() a été ajouté pour prendre en charge le type \fIsigset_t\fP élargi. Le nouvel appel système prend un deuxième paramètre, \fIsize_t sigsetsize\fP, qui indique la taille en octets des jeux de signal positionné dans \fImask\fP. Ce paramètre est actuellement nécessaire pour obtenir la valeur \fIsizeof(sigset_t)\fP (ou le résultat de l'erreur \fBEINVAL\fP). La fonction enveloppe \fBsigsuspend\fP() de la glibc nous cache ces détails en appelant de manière transparente \fBrt_sigsuspend\fP() quand le noyau le fournit. .SH "VOIR AUSSI" \fBkill\fP(2), \fBpause\fP(2), \fBsigaction\fP(2), \fBsignal\fP(2), \fBsigprocmask\fP(2), \fBsigwaitinfo\fP(2), \fBsigsetops\fP(3), \fBsigwait\fP(3), \fBsignal\fP(7) .SH COLOPHON Cette page fait partie de la publication\ 5.10 du projet \fIman\-pages\fP Linux. Une description du projet et des instructions pour signaler des anomalies et la dernière version de cette page peuvent être trouvées à l'adresse \%https://www.kernel.org/doc/man\-pages/. .PP .SH TRADUCTION La traduction française de cette page de manuel a été créée par Christophe Blaess , Stéphan Rafin , Thierry Vignaud , François Micaux, Alain Portal , Jean-Philippe Guérard , Jean-Luc Coulon (f5ibh) , Julien Cristau , Thomas Huriaux , Nicolas François , Florentin Duneau , Simon Paillard , Denis Barbier , David Prévot , Cédric Boutillier , Frédéric Hantrais et Jean-Philippe MENGUAL . .PP Cette traduction est une documentation libre ; veuillez vous reporter à la .UR https://www.gnu.org/licenses/gpl-3.0.html GNU General Public License version 3 .UE concernant les conditions de copie et de distribution. Il n'y a aucune RESPONSABILITÉ LÉGALE. .PP Si vous découvrez un bogue dans la traduction de cette page de manuel, veuillez envoyer un message à .MT debian-l10n-french@lists.debian.org .ME .