Skip to content

Commit

Permalink
core/queue: close queue store after mmap()
Browse files Browse the repository at this point in the history
Reported by Coverity as CID #971035.
  • Loading branch information
xrmx committed Mar 9, 2013
1 parent 17f3f3d commit 851df33
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions core/queue.c
Expand Up @@ -47,6 +47,7 @@ void uwsgi_init_queue() {
// fix header
uwsgi.queue_header = uwsgi.queue;
uwsgi.queue += 16;
close(queue_fd);
}
else {
uwsgi.queue = mmap(NULL, (uwsgi.queue_blocksize * uwsgi.queue_size) + 16, PROT_READ | PROT_WRITE, MAP_SHARED | MAP_ANON, -1, 0);
Expand Down

0 comments on commit 851df33

Please sign in to comment.