]> git.ipfire.org Git - thirdparty/unbound.git/commit
Fix unbound-control stdin commands for multi-process Unbounds (#1069)
authorYorgos Thessalonikefs <yorgos@nlnetlabs.nl>
Fri, 17 May 2024 08:25:24 +0000 (10:25 +0200)
committerGitHub <noreply@github.com>
Fri, 17 May 2024 08:25:24 +0000 (10:25 +0200)
commit7f184c8ca8559f53c2da3384171bff29e91baf60
tree4d0dd721061c06908064657c173687bb41e62579
parentda2b307aa3933fb7b4d1daef0d928b44f00dde5d
Fix unbound-control stdin commands for multi-process Unbounds (#1069)

- Fix unbound-control commands that read stdin in multi-process
  operation (local_zones_remove, local_zones, local_datas_remove,
  local_datas, view_local_datas_remove, view_local_datas). They will
  be properly distributed to all processes. dump_cache and load_cache
  are no longer supported in multi-process operation.

 - Remove testdata/remote-threaded.tdir. testdata/09-unbound-control.tdir
  now checks both single and multi process/thread operation.

---------

Co-authored-by: Wouter Wijngaards <wcawijngaards@users.noreply.github.com>
27 files changed:
daemon/remote.c
doc/unbound-control.8.in
smallapp/unbound-control.c
testdata/09-unbound-control.tdir/09-unbound-control.conf
testdata/09-unbound-control.tdir/09-unbound-control.pre
testdata/09-unbound-control.tdir/09-unbound-control.test
testdata/09-unbound-control.tdir/09-unbound-control.testns
testdata/09-unbound-control.tdir/local_data
testdata/09-unbound-control.tdir/local_data_remove
testdata/09-unbound-control.tdir/local_zones
testdata/09-unbound-control.tdir/local_zones_remove
testdata/09-unbound-control.tdir/view_local_data [new file with mode: 0644]
testdata/09-unbound-control.tdir/view_local_data_remove [new file with mode: 0644]
testdata/remote-threaded.tdir/bad_control.key [deleted file]
testdata/remote-threaded.tdir/bad_control.pem [deleted file]
testdata/remote-threaded.tdir/bad_server.key [deleted file]
testdata/remote-threaded.tdir/bad_server.pem [deleted file]
testdata/remote-threaded.tdir/remote-threaded.conf [deleted file]
testdata/remote-threaded.tdir/remote-threaded.dsc [deleted file]
testdata/remote-threaded.tdir/remote-threaded.post [deleted file]
testdata/remote-threaded.tdir/remote-threaded.pre [deleted file]
testdata/remote-threaded.tdir/remote-threaded.test [deleted file]
testdata/remote-threaded.tdir/remote-threaded.testns [deleted file]
testdata/remote-threaded.tdir/unbound_control.key [deleted file]
testdata/remote-threaded.tdir/unbound_control.pem [deleted file]
testdata/remote-threaded.tdir/unbound_server.key [deleted file]
testdata/remote-threaded.tdir/unbound_server.pem [deleted file]