chiark / gitweb /
coredump: don't be annoyed if another coredump hook removes our coredump while we...
authorLennart Poettering <lennart@poettering.net>
Fri, 27 Jun 2014 16:59:12 +0000 (18:59 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 27 Jun 2014 17:35:57 +0000 (19:35 +0200)
src/journal/coredump.c

index 7e11cea4f1118a2656e2117575a4a38cc9f8fdb6..6499fbdef8616696acdc1b610302c483fa324988 100644 (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;
         }