coredump: don't be annoyed if another coredump hook removes our coredump while we work on it

This commit is contained in:
Lennart Poettering 2014-06-27 18:59:12 +02:00
parent cfc194575b
commit 9d951bf491

View file

@ -272,7 +272,7 @@ static int maybe_remove_external_coredump(const char *filename, off_t size) {
if (!filename)
return 1;
if (unlink(filename) < 0) {
if (unlink(filename) < 0 && errno != ENOENT) {
log_error("Failed to unlink %s: %m", filename);
return -errno;
}