Add smbutil discon command
The SMB client tests need a way to get rid of existing connections owned by the user running the tests.
(The tests used to kill the smbiod but that can cause the service to go into maintenance).
We already have driver support to do this, and just need to expose it in a command.
This adds an smbutil "discon" sub-command, primarily for use in the tests.
A related fix to do as part of this, because we're calling smb_iod_disconnect via this sub-command.
No longer tsignal() the IOD thread in smb_iod_disconnect because that ends up being seen in smbiod and can cause it to go into maintenance.
That was always just unnecessary paranoia anyway. Sending a disconnect down the TCP transport is entirely sufficient to cause the IOD thread to terminate.
Updated by Electric Monk over 2 years ago
- Status changed from New to Closed
- % Done changed from 0 to 100
commit a6d101109bfb442cf0db6d8ebb5fb7c32cb16d7e Author: Gordon Ross <firstname.lastname@example.org> Date: 2018-10-14T14:47:35.000Z 9472 Add smbutil discon command Reviewed by: Matt Barden <email@example.com> Reviewed by: Evan Layton <firstname.lastname@example.org> Reviewed by: Andy Fiddaman <email@example.com> Reviewed by: Ken Mays <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>