summaryrefslogtreecommitdiffhomepage
path: root/auto/atomic
diff options
context:
space:
mode:
authorAlex Colomar <a.colomar@f5.com>2022-09-10 18:00:27 +0200
committerAlejandro Colomar <alx@nginx.com>2022-10-14 14:43:04 +0200
commitf2213dbd1b51838ec6b59073d9d071a75def7858 (patch)
tree660015b7d47ea949b63f28afc120e9c09f040536 /auto/atomic
parentf8b892e1fa3d6398a21ce5e183911baa11a14d6a (diff)
downloadunit-f2213dbd1b51838ec6b59073d9d071a75def7858.tar.gz
unit-f2213dbd1b51838ec6b59073d9d071a75def7858.tar.bz2
Added missing error checking in the C API.
pthread_mutex_init(3) may fail for several reasons, and failing to check will cause Undefined Behavior when those errors happen. Add missing checks, and correctly deinitialize previously created stuff before exiting from the API. Signed-off-by: Alejandro Colomar <alx@nginx.com> Reviewed-by: Andrew Clayton <a.clayton@nginx.com> Reviewed-by: Zhidao HONG <z.hong@f5.com>
Diffstat (limited to 'auto/atomic')
0 files changed, 0 insertions, 0 deletions