Destroy DMAPI session when main smbd daemon exits.
authorAlexander Bokovoy <ab@samba.org>
Tue, 8 Apr 2008 11:19:01 +0000 (15:19 +0400)
committerAlexander Bokovoy <ab@samba.org>
Tue, 8 Apr 2008 11:19:01 +0000 (15:19 +0400)
commita0cefd44009d414fa00ec6e08c70d21b74acdbcb
tree3c745414990763ee043928de23d687985097deca
parent1faa97d5cc51277abbc6cb5c37d31c429bea04e4
Destroy DMAPI session when main smbd daemon exits.

DMAPI session is precious resource maintained at kernel level. We open one of them and use across multiple smbd daemons
but once last of them exits, DMAPI session needs to be destroyed. There are some HSM implementations which fail to
shutdown when opened DMAPI sessions left. Ensure we shutdown our session when it is really not needed anymore.
This is what recommended by DMAPI specification anyway.
source/smbd/dmapi.c
source/smbd/server.c