note 106428 added to function.exec
| From: | ajones at osu1 dot php dot net | Date: | Wed, 09 Nov 2011 03:57:53 +0000 |
| Subject: | note 106428 added to function.exec | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-184343@lists.php.net to get a copy of this message | ||
If you use exec to run a process in the background don't use $! to get the PID; it will not
necessarily get the PID of what you've just executed, especially if there happens to be other
background processes starting around the same time.
MODERATORS: this is in response to dell_petter's post giving an example of a process management
class on the exec() discussion page.
----
Server IP: 69.147.83.197
Probable Submitter: 194.80.32.11 (proxied: 148.88.227.99)
----
Manual Page -- http://www.php.net/manual/en/function.exec.php
Edit -- https://master.php.net/note/edit/106428
Del: integrated -- https://master.php.net/note/delete/106428/integrated
Del: useless -- https://master.php.net/note/delete/106428/useless
Del: bad code -- https://master.php.net/note/delete/106428/bad+code
Del: spam -- https://master.php.net/note/delete/106428/spam
Del: non-english -- https://master.php.net/note/delete/106428/non-english
Del: in docs -- https://master.php.net/note/delete/106428/in+docs
Del: other reasons-- https://master.php.net/note/delete/106428
Reject -- https://master.php.net/note/reject/106428
Search -- https://master.php.net/manage/user-notes.php