Must call EndThread?
Original Reporter info from Mantis: L505
-
Reporter name: Lars(L505)
Original Reporter info from Mantis: L505
- Reporter name: Lars(L505)
Description:
On Linux when I use BeginThread without a matching EndThread call, linux keeps opening threads (380 maximum) instead of closing them when the function passed in exits. 380 is a magic number that linux put in the kernel from my research!
When I place an EndThread call at the end of the function that was passed in, the threads do exit just fine and it does not max out at 380 because they close.
This was found in Aservia web server.
Mantis conversion info:
- Mantis ID: 11490
- Version: 2.0.4
- Fixed in version: 2.4.2
- Fixed in revision: 11671 (#c1791620)(reverted, see comments)
- Monitored by: » wanderlan (Wanderlan Santos dos Anjos)