s4-messaging: fixed the removal of messaging sockets in child tasks
authorAndrew Tridgell <tridge@samba.org>
Fri, 22 Jul 2011 04:55:32 +0000 (14:55 +1000)
committerAndrew Tridgell <tridge@samba.org>
Fri, 22 Jul 2011 06:09:06 +0000 (08:09 +0200)
commit2d21fe079fb57e55d9bac0c69d8527013bf4fbc7
tree87c39ddaa23e90578b9408f31b87b093c1e7cb17
parentfafd386910ca5f17c42cd0cf0a7c759f0950d518
s4-messaging: fixed the removal of messaging sockets in child tasks

when a child task exits we were firing a destructor on any inherited
messaging contexts, which could trigger a removal of the parents
message socket and messaging database entry.

This adds a new auto_remove flag to imessaging_init(), and exposes the
cleanup code for use by the stream service.

Pair-Programmed-With: Andrew Bartlett <abartlet@samba.org>

Autobuild-User: Andrew Tridgell <tridge@samba.org>
Autobuild-Date: Fri Jul 22 08:09:06 CEST 2011 on sn-devel-104
source4/lib/messaging/messaging.c
source4/lib/messaging/messaging.h
source4/lib/messaging/pymessaging.c
source4/lib/messaging/tests/irpc.c
source4/lib/messaging/tests/messaging.c
source4/smbd/server.c
source4/smbd/service_stream.c
source4/smbd/service_task.c