This repository has been archived by the owner on Nov 5, 2019. It is now read-only.
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
slirp: use exit notifier for slirp_smb_cleanup
We would like to move back net_cleanup() at the end of main function, like it used to be until f30dbae, but minimum cleanup is needed regardless at exit() time for slirp's SMB functionality. Use an exit notifier to call slirp_smb_cleanup. If net_cleanup() is called first, then remove the exit notifier as it will become a dangling pointer otherwise. Reviewed-by: Marc-André Lureau <[email protected]> Reviewed-by: Jason Wang <[email protected]> Signed-off-by: Paolo Bonzini <[email protected]>
- Loading branch information