common/utils/exit-with-parent.c: Use nbdkit_shutdown instead of exit
commit5764fa6f4a2b1408e4e62c39b2413e55ef77ab36
authorRichard W.M. Jones <rjones@redhat.com>
Tue, 16 Aug 2022 07:43:05 +0000 (16 08:43 +0100)
committerRichard W.M. Jones <rjones@redhat.com>
Tue, 16 Aug 2022 07:43:05 +0000 (16 08:43 +0100)
treef7edf1f0119346512233f8385bdc09d318ac9214
parentfca4a315a0ee74c2f8ad02212cfc3ffdb7d98851
common/utils/exit-with-parent.c: Use nbdkit_shutdown instead of exit

Using nbdkit_shutdown we can ensure that unload handlers in the plugin
and filters run, rather than abruptly exiting.

Fixes: commit 82ee45027bb9e5e8f7e4aa547bf1742466966812
common/utils/exit-with-parent.c