array ( 0 => 'index.php', 1 => 'PHP Manual', ), 'head' => array ( 0 => 'UTF-8', 1 => 'fr', ), 'this' => array ( 0 => 'function.pcntl-sigtimedwait.php', 1 => 'pcntl_sigtimedwait', ), 'up' => array ( 0 => 'ref.pcntl.php', 1 => 'Fonctions PCNTL', ), 'prev' => array ( 0 => 'function.pcntl-sigprocmask.php', 1 => 'pcntl_sigprocmask', ), 'next' => array ( 0 => 'function.pcntl-sigwaitinfo.php', 1 => 'pcntl_sigwaitinfo', ), 'alternatives' => array ( ), 'source' => array ( 'lang' => 'fr', 'path' => 'reference/pcntl/functions/pcntl-sigtimedwait.xml', ), ); $setup["toc"] = $TOC; $setup["toc_deprecated"] = $TOC_DEPRECATED; $setup["parents"] = $PARENTS; manual_setup($setup); ?>
(PHP 5 >= 5.3.0, PHP 7, PHP 8)
pcntl_sigtimedwait — Attend un signal dans un délai donné
$signals
,&$info
= [],$seconds
= 0,$nanoseconds
= 0
La fonction pcntl_sigtimedwait() opère exactement comme
pcntl_sigwaitinfo() hormis le fait qu'elle prend deux
paramètres supplémentaires : seconds
et
nanoseconds
, qui établissent une durée maximale
d'attente.
signals
Une liste de signaux à attendre.
info
Le paramètre info
reçoit les informations
du signal, sous forme de tableau. Voyez
pcntl_sigwaitinfo().
seconds
Délai d'attente maximal en secondes.
nanoseconds
Délai d'attente maximal en nanosecondes.
pcntl_sigtimedwait() retourne un numéro du signal
en cas de succès, ou false
si une erreur survient.