s3: messages: Implement cleanup of dead records.
commit837671f47670b16726aa96ba7a0902974a1037eb
authorJeremy Allison <jra@samba.org>
Wed, 2 Apr 2014 23:45:25 +0000 (2 16:45 -0700)
committerJeremy Allison <jra@samba.org>
Thu, 3 Apr 2014 04:22:13 +0000 (3 06:22 +0200)
treeed199a59526ad0b1b55e0e937a502fd73fe3c10a
parent5cf6e9c8520be49aa57436bf725521cdc5d160f8
s3: messages: Implement cleanup of dead records.

When a smbd process dies, pending messages.tdb records for this process
might not get cleaned up. Implement a cleanup for dead records that is
triggered after a smbd dies uncleanly; the records for that PID are
deleted.

Based on a patchset from Christof Schmitt <cs@samba.org>.

Signed-off-by: Jeremy Allison <jra@samba.org>
Reviewed-by: Christof Schmitt <cs@samba.org>
source3/include/messages.h
source3/lib/messages.c
source3/lib/messages_local.c
source3/smbd/server.c