mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Adding a note that shutdown functions won't be executed if the script gets a SIGTERM or SIGKILL, though you can pcntl_signal() for the TERM and exit;. (doc #63275)
-- Provided by anonymous #22227 (mail+php@requinix.net) git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@328335 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
9ee94cd5a8
commit
2156ae971c
1 changed files with 8 additions and 0 deletions
|
@ -142,6 +142,14 @@ register_shutdown_function('shutdown');
|
|||
under some web servers, e.g. Apache.
|
||||
</para>
|
||||
</note>
|
||||
<note>
|
||||
<para>
|
||||
Shutdown functions will not be executed if the process is killed with a SIGTERM
|
||||
or SIGKILL signal. While you cannot intercept a SIGKILL, you can use <function>pcntl_signal</function>
|
||||
to install a handler for a SIGTERM which uses <function>exit</function> to
|
||||
end cleanly.
|
||||
</para>
|
||||
</note>
|
||||
</refsect1>
|
||||
|
||||
<refsect1 role="seealso">
|
||||
|
|
Loading…
Reference in a new issue