]> git.ipfire.org Git - thirdparty/pdns.git/commit
Make sure the DelayPipe thread is the last member initialized 3174/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 5 Jan 2016 18:01:01 +0000 (19:01 +0100)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 5 Jan 2016 18:01:01 +0000 (19:01 +0100)
commit2c8244caae9ee292bf66aec2745ed7d5d269aafe
treebf8409758fea8695dc68cbd6205864f99ff18f78
parentfacc2e52456fe15510e3cc9b1c66799c0afce05d
Make sure the DelayPipe thread is the last member initialized

Otherwise the new thread might start running and access
uninitialized members like d_pipe or d_work.
On my host, running dnsdist in gdb without this modification
results in a SIGSEGV at delaypipe.cc:141.
pdns/delaypipe.hh