smbd: Only DEBUG errors from messaging_cleanup
authorVolker Lendecke <vl@samba.org>
Mon, 18 Aug 2014 11:59:00 +0000 (11:59 +0000)
committerVolker Lendecke <vl@samba.org>
Thu, 21 Aug 2014 10:35:11 +0000 (12:35 +0200)
Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ronnie sahlberg <ronniesahlberg@gmail.com>
source3/smbd/server.c

index bea25cbea56fb2c0aa4d6f7d0a7ff4be48a86d89..1a0d3c9c9baa551200228ec17d8e4e0260c176a5 100644 (file)
@@ -421,8 +421,11 @@ static void remove_child_pid(struct smbd_parent_context *parent,
        child_id = pid_to_procid(pid);
 
        ret = messaging_cleanup(parent->msg_ctx, pid);
-       DEBUG(10, ("%s: messaging_cleanup returned %s\n",
-                  __func__, ret ? strerror(ret) : "ok"));
+
+       if ((ret != 0) && (ret != ENOENT)) {
+               DEBUG(10, ("%s: messaging_cleanup returned %s\n",
+                          __func__, ret ? strerror(ret) : "ok"));
+       }
 
        for (child = parent->children; child != NULL; child = child->next) {
                if (child->pid == pid) {