Doc #63275 [NEW]: Enhance register_shutdown_function docs about SIGTERM handling
| From: | eric at wepay dot com | Date: | Sat, 13 Oct 2012 17:44:49 +0000 |
| Subject: | Doc #63275 [NEW]: Enhance register_shutdown_function docs about SIGTERM handling | ||
| Groups: | php.doc.bugs | ||
| Request: | Send a blank email to doc-bugs+get-8958@lists.php.net to get a copy of this message | ||
From: eric at wepay dot com
Operating system:
PHP version: Irrelevant
Package: Documentation problem
Bug Type: Documentation Problem
Bug description:Enhance register_shutdown_function docs about SIGTERM handling
Description:
------------
There should be a note added to the documentation on
register_shutdown_function
that the callbacks will not be run if the process is killed via
SIGTERM/SIGKILL,
however they will run if SIGTERM is intercepted with pcntl_signal and the
callback
causes the script to exit cleanly; i.e. pcntl_signal(SIGTERM, function() {
exit;
});
Given the semantics of SIGTERM (request a clean shutdown of the process),
it's
unintuitive to not get the behavior of using "exit;", although I can see
the
reasoning for doing so.
--
Edit bug report at https://bugs.php.net/bug.php?id=63275&edit=1
--
Try a snapshot (PHP 5.4): https://bugs.php.net/fix.php?id=63275&r=trysnapshot54
Try a snapshot (PHP 5.3): https://bugs.php.net/fix.php?id=63275&r=trysnapshot53
Try a snapshot (trunk): https://bugs.php.net/fix.php?id=63275&r=trysnapshottrunk
Fixed in SVN: https://bugs.php.net/fix.php?id=63275&r=fixed
Fixed in release: https://bugs.php.net/fix.php?id=63275&r=alreadyfixed
Need backtrace: https://bugs.php.net/fix.php?id=63275&r=needtrace
Need Reproduce Script: https://bugs.php.net/fix.php?id=63275&r=needscript
Try newer version: https://bugs.php.net/fix.php?id=63275&r=oldversion
Not developer issue: https://bugs.php.net/fix.php?id=63275&r=support
Expected behavior: https://bugs.php.net/fix.php?id=63275&r=notwrong
Not enough info: https://bugs.php.net/fix.php?id=63275&r=notenoughinfo
Submitted twice: https://bugs.php.net/fix.php?id=63275&r=submittedtwice
register_globals: https://bugs.php.net/fix.php?id=63275&r=globals
PHP 4 support discontinued: https://bugs.php.net/fix.php?id=63275&r=php4
Daylight Savings: https://bugs.php.net/fix.php?id=63275&r=dst
IIS Stability: https://bugs.php.net/fix.php?id=63275&r=isapi
Install GNU Sed: https://bugs.php.net/fix.php?id=63275&r=gnused
Floating point limitations: https://bugs.php.net/fix.php?id=63275&r=float
No Zend Extensions: https://bugs.php.net/fix.php?id=63275&r=nozend
MySQL Configuration Error: https://bugs.php.net/fix.php?id=63275&r=mysqlcfg