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:
parent
131437e079
commit
12c781b9bf
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user