Login
Register
All class groups
Latest entries
Top 10 charts
Blog
Forums
Shop
Help
Login
Register
Looks like you should use pcntl_wait()
Search
All class groups
Latest entries
Top 10 charts
Blog
Forums
Shop
Help
Recommend
this page to a friend!
Threadable
>
All threads
>
Looks like you should use pcntl_wait()
>
(Un) Subscribe thread alerts
Subject:
Looks like you should use pcntl_wait()
Summary:
Using pcntl_wait() instead of exit; help stopping loose threads
Messages:
1
Author:
Jon Lennryd
Date:
2017-09-13 16:17:31
1. Looks like you should use pcntl_wait()
Reply
Report abuse
Jon Lennryd - 2017-09-13 16:17:31
Hi, in Threadable::fork() you call exit; when all fork and done. This seems dangerous, the recommended is to wait using pcntl_wait().
Please see the first example in the docs:
php.net/manual/en/function.pcntl-fo
...
About us
Advertise on this site
Site map
Newsletter
Statistics
Site tips
Privacy policy
Contact
Copyright (c)
Icontem
1999-2024
For more information send a message to
info at phpclasses dot org
.
image/svg+xml
image/svg+xml
Contact us using Messenger