]> git.ipfire.org Git - thirdparty/pdns.git/commit
dnsdist: Handle EINTR in DelayPipe 9381/head
authorRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 11 Aug 2020 12:46:52 +0000 (14:46 +0200)
committerRemi Gacogne <remi.gacogne@powerdns.com>
Tue, 11 Aug 2020 12:46:52 +0000 (14:46 +0200)
commitf58cb6a386a3a09d2d44859869ac09cbaca80193
tree10a6cf7c6990ff3a2f1bf4a64eb3276782a58eb1
parent573dc48f28d2a9eec1b36c944d4db51da42692c6
dnsdist: Handle EINTR in DelayPipe

Otherwise the DelayPipe thread might stop because the read() operation
has been interrupted by a signal (like SIGWINCH, which is quite annoying).
Also remove the unused `read()` operation.
pdns/delaypipe.cc
pdns/delaypipe.hh
pdns/dnsdistdist/test-delaypipe_hh.cc