.\" -*- 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 \- wait for a 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() temporarily replaces the signal mask of the calling thread with the mask given by \fImask\fP and then suspends the thread until delivery of a signal whose action is to invoke a signal handler or to terminate a process. .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 It is not possible to block \fBSIGKILL\fP or \fBSIGSTOP\fP; specifying these signals in \fImask\fP, has no effect on the thread's signal mask. .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 The call was interrupted by a signal; \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" .\" The original Linux system call was named \fBsigsuspend\fP(). However, with the addition of real\-time signals in Linux 2.2, the fixed\-size, 32\-bit \fIsigset_t\fP type supported by that system call was no longer fit for purpose. Consequently, a new system call, \fBrt_sigsuspend\fP(), was added to support an enlarged \fIsigset_t\fP type. The new system call takes a second argument, \fIsize_t sigsetsize\fP, which specifies the size in bytes of the signal set in \fImask\fP. This argument is currently required to have the value \fIsizeof(sigset_t)\fP (or the error \fBEINVAL\fP results). The glibc \fBsigsuspend\fP() wrapper function hides these details from us, transparently calling \fBrt_sigsuspend\fP() when the kernel provides it. .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/. .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 et Frédéric Hantrais . 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. 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 .