summaryrefslogtreecommitdiff
path: root/src/journal/coredump.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2014-06-27 18:59:12 +0200
committerLennart Poettering <lennart@poettering.net>2014-06-27 19:35:57 +0200
commit9d951bf491a2b6d32b050e8bdc301617560813c8 (patch)
tree6f904379f9be14ec85c731e9f6ce6a23eea9bb8a /src/journal/coredump.c
parentcfc194575baaed980e4d4e947ec9d456ebf07838 (diff)
coredump: don't be annoyed if another coredump hook removes our coredump while we work on it
Diffstat (limited to 'src/journal/coredump.c')
-rw-r--r--src/journal/coredump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/journal/coredump.c b/src/journal/coredump.c
index 7e11cea4f1..6499fbdef8 100644
--- a/src/journal/coredump.c
+++ b/src/journal/coredump.c
@@ -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;
}