summaryrefslogtreecommitdiffstats
path: root/source3/utils
diff options
context:
space:
mode:
authorVolker Lendecke <vl@samba.org>2014-07-17 11:01:00 +0000
committerJeremy Allison <jra@samba.org>2014-08-11 23:57:12 +0200
commit32d45cf2f3a0d709f35560f9cc119438a0a5b397 (patch)
tree7b21acf8da035abe68ecda29078846e7830505fe /source3/utils
parentdcd3e2f2dc43875aec0448d74b2e040290338426 (diff)
downloadsamba-32d45cf2f3a0d709f35560f9cc119438a0a5b397.tar.gz
samba-32d45cf2f3a0d709f35560f9cc119438a0a5b397.tar.xz
samba-32d45cf2f3a0d709f35560f9cc119438a0a5b397.zip
messaging3: Add messaging_cleanup
Rename smbcontrol's dgm-cleanup to msg-cleanup. We haven't published this UI yet :-) Signed-off-by: Volker Lendecke <vl@samba.org> Reviewed-by: Jeremy Allison <jra@samba.org>
Diffstat (limited to 'source3/utils')
-rw-r--r--source3/utils/smbcontrol.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/source3/utils/smbcontrol.c b/source3/utils/smbcontrol.c
index edd2edcb63..7c516c446c 100644
--- a/source3/utils/smbcontrol.c
+++ b/source3/utils/smbcontrol.c
@@ -968,18 +968,14 @@ static bool do_num_children(struct tevent_context *ev_ctx,
return num_replies;
}
-static bool do_dgm_cleanup(struct tevent_context *ev_ctx,
+static bool do_msg_cleanup(struct tevent_context *ev_ctx,
struct messaging_context *msg_ctx,
const struct server_id pid,
const int argc, const char **argv)
{
int ret;
- if (pid.pid != 0) {
- ret = messaging_dgm_cleanup(msg_ctx, pid.pid);
- } else {
- ret = messaging_dgm_wipe(msg_ctx);
- }
+ ret = messaging_cleanup(msg_ctx, pid.pid);
printf("cleanup(%u) returned %s\n", (unsigned)pid.pid,
ret ? strerror(ret) : "ok");
@@ -1397,7 +1393,7 @@ static const struct {
{ "notify-cleanup", do_notify_cleanup },
{ "num-children", do_num_children,
"Print number of smbd child processes" },
- { "dgm-cleanup", do_dgm_cleanup },
+ { "msg-cleanup", do_msg_cleanup },
{ "noop", do_noop, "Do nothing" },
{ NULL }
};