]> git.ipfire.org Git - thirdparty/haproxy.git/commit
BUG/MINOR: thread: add a check for pthread_create
authoreaglegai <eaglegai@163.com>
Fri, 26 May 2023 08:44:34 +0000 (16:44 +0800)
committerWilly Tarreau <w@1wt.eu>
Fri, 26 May 2023 10:08:23 +0000 (12:08 +0200)
commitef667b1ad89bb159b1991de0ec07d17e4320df23
tree00a6c7a286b9f23449cebe10bb9cd04aa2ca113d
parent15c3d20e315f1f06c9649ae598de86d61d41085b
BUG/MINOR: thread: add a check for pthread_create

preload_libgcc_s() use pthread_create to create a thread and then call
pthread_join to use it, but it doesn't check if the option is successful.
So add a check to aviod potential crash.
src/thread.c