Fixed up the error detection code when relating the pthread functions.
They return 0 if OK, and a positive error code. Cleaned up the status setting code in thread_main(). Thanks to Hans-Georg Bork for fixing the problem in thread_pool_create() where the status wasn't set early enough to allow all the threads to be created. Added additional logging information to let the admin know what is happening with the thread creation.
This commit is contained in:
1 parent
1a8c914dd2
commit
577f3cebbf
2 files changed
+43
-25
No files matched your search
@@ -1,3 +1,15 @@
|
||||
2002-04-27 Robert James Kaes <rjkaes@flarenet.com>
|
||||
|
||||
* src/thread.c (thread_pool_create): Set the thread's status
|
||||
_before_ the thread is created. Thanks to Hans-Georg Bork for
|
||||
solving this problem.
|
||||
(thread_main): Fixed up the status setting code. Removed
|
||||
duplicated code and explicitly set the status when needed.
|
||||
|
||||
Fixed up all the code checking the return value from the pthread
|
||||
functions. These functions return 0 if OK, but a _positive_ error
|
||||
code.
|
||||
|
||||
2002-04-26 Robert James Kaes <rjkaes@flarenet.com>
|
||||
|
||||
* src/reqs.c (connect_to_tunnel): Changed the len type to an
|
||||
|
||||
Reference in new issue
Block a user