note 99329 added to function.apache-child-terminate
| From: | StephanFerraro at osu1 dot php dot net | Date: | Wed, 11 Aug 2010 09:39:06 +0000 |
| Subject: | note 99329 added to function.apache-child-terminate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171564@lists.php.net to get a copy of this message | ||
I found out a solution for Apache 2. However this works only without threads and only on POSIX
compatible OS systems (e.g. Linux, OpenSolaris...).
<?
// Terminate Apache 2 child process after request has been
// done by sending a SIGWINCH POSIX signal (28).
function kill_on_exit() {
posix_kill( getmypid(), 28 );
}
register_shutdown_function( 'kill_on_exit' );
?>
----
Server IP: 85.214.154.209
Probable Submitter: 213.61.173.18
----
Manual Page -- http://www.php.net/manual/en/function.apache-child-terminate.php
Edit -- https://master.php.net/note/edit/99329
Del: integrated -- https://master.php.net/note/delete/99329/integrated
Del: useless -- https://master.php.net/note/delete/99329/useless
Del: bad code -- https://master.php.net/note/delete/99329/bad+code
Del: spam -- https://master.php.net/note/delete/99329/spam
Del: non-english -- https://master.php.net/note/delete/99329/non-english
Del: in docs -- https://master.php.net/note/delete/99329/in+docs
Del: other reasons-- https://master.php.net/note/delete/99329
Reject -- https://master.php.net/note/reject/99329
Search -- https://master.php.net/manage/user-notes.php