note 111994 added to function.proc-nice

From: Date: Fri, 19 Apr 2013 18:17:41 +0000
Subject: note 111994 added to function.proc-nice
Groups: php.notes 
Request: Send a blank email to php-notes+get-194566@lists.php.net to get a copy of this message
On a Linux system, running apache2 as a non-privileged user you can not increase the niceness of the process after decreasing it. Also, you can not use the apache_child_ terminate either. I found the following does work though: <?php //decrease niceness proc_nice(19); //kill child process to "reset" niceness posix_kill( getmypid(), 28 ); ?> ---- Server IP: 69.147.83.199 Probable Submitter: 64.233.193.153 ---- Manual Page -- http://php.net/manual/en/function.proc-nice.php Edit -- https://master.php.net/note/edit/111994 Del: integrated -- https://master.php.net/note/delete/111994/integrated Del: useless -- https://master.php.net/note/delete/111994/useless Del: bad code -- https://master.php.net/note/delete/111994/bad+code Del: spam -- https://master.php.net/note/delete/111994/spam Del: non-english -- https://master.php.net/note/delete/111994/non-english Del: in docs -- https://master.php.net/note/delete/111994/in+docs Del: other reasons-- https://master.php.net/note/delete/111994 Reject -- https://master.php.net/note/reject/111994 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#194566) next »