summaryrefslogtreecommitdiffhomepage
path: root/src/nxt_thread_id.h
diff options
context:
space:
mode:
authorMax Romanov <max.romanov@nginx.com>2018-08-07 15:52:11 +0300
committerMax Romanov <max.romanov@nginx.com>2018-08-07 15:52:11 +0300
commit257283cc389a8f453cbf4ebd028af79e9b23258b (patch)
treec466cca23d07ab0569c20e6faea1735d5345d9ee /src/nxt_thread_id.h
parent09268676ef9f80291c554431b15495afd63177af (diff)
downloadunit-257283cc389a8f453cbf4ebd028af79e9b23258b.tar.gz
unit-257283cc389a8f453cbf4ebd028af79e9b23258b.tar.bz2
Fixed unit library mutex usage.
For the optimization purpose, function nxt_unit_remove_process() expects lib->mutex to be locked. The function then moves ports queue into temporary queue and releases mutex. In nxt_unit_done() there were two errors: mutex was not locked before nxt_unit_remove_process() call and mutex was not destroyed. It is hard to tell what was possible negative impact of this errors. Found by Coverity (CID 308517).
Diffstat (limited to 'src/nxt_thread_id.h')
0 files changed, 0 insertions, 0 deletions