note 106428 deleted from function.exec by danbrown
| From: | danbrown@php.net | Date: | Tue, 15 Nov 2011 16:44:03 +0000 |
| Subject: | note 106428 deleted from function.exec by danbrown | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-184495@lists.php.net to get a copy of this message | ||
Note Submitter: ajones
----
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.