1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-10 01:18:15 +03:00

messaging3: Don't print a message if there's nothing to clean up

Signed-off-by: Volker Lendecke <vl@samba.org>
Reviewed-by: Ronnie sahlberg <ronniesahlberg@gmail.com>
This commit is contained in:
Volker Lendecke 2014-08-18 11:58:05 +00:00
parent 131437e079
commit 12c781b9bf

View File

@ -335,8 +335,10 @@ int messaging_dgm_cleanup(struct messaging_dgm_context *ctx, pid_t pid)
fd = open(lockfile_name, O_NONBLOCK|O_WRONLY, 0);
if (fd == -1) {
ret = errno;
DEBUG(10, ("%s: open(%s) failed: %s\n", __func__,
lockfile_name, strerror(ret)));
if (ret != ENOENT) {
DEBUG(10, ("%s: open(%s) failed: %s\n", __func__,
lockfile_name, strerror(ret)));
}
TALLOC_FREE(lockfile_name);
return ret;
}