Frederic Crozat
dd5f3ba981
- Remove storage-after-cryptsetup.service, add storage-after-cryptsetup.patch instead to prevent dependency cycle (bnc#722539). - Add delay-fsck-cryptsetup-after-md-lvm-dmraid.patch: ensure fsck/cryptsetup is run after lvm/md/dmraid have landed (bnc#724912). - Add cron-tty-pam.patch: Fix cron filling logs (bnc#731358). - Add do_not_warn_pidfile.patch: Fix PID warning in logs (bnc#732912). - Add mount-swap-log.patch: Ensure swap and mount output is redirected to default log target (rhb#750032). - Add color-on-boot.patch: ensure colored status are displayed at boot time. - Update modules_on_boot.patch to fix bnc#732041. - Replace private_tmp_crash.patch with log_on_close.patch, better upstream fix for bnc#699829 and fix bnc#731719. - Update vconsole patch to fix memleaks and crash (bnc#734527). - Add handle-racy-daemon.patch: fix warnings with sendmail (bnc#732912). - Add new-lsb-headers.patch: support PIDFile: and X-Systemd-RemainAfterExit: header in initscript (bnc#727771). - Update bootsplash services to not start if vga= is missing from cmdline (bnc#727771) - Add lock-opensuse.patch: disable /var/lock/{subsys,lockdev} and change default permissions on /var/lock (bnc#733523). - Add garbage_collect_units: ensure error units are correctly garbage collected (rhb#680122). - Add crypt-loop-file.patch: add support for crypt file loop (bnc#730496). OBS-URL: https://build.opensuse.org/request/show/96123 OBS-URL: https://build.opensuse.org/package/show/Base:System/systemd?expand=0&rev=228
30 lines
895 B
Diff
30 lines
895 B
Diff
From 9a46fc3b9014de1bf0ed1f3004a536b08a19ebb3 Mon Sep 17 00:00:00 2001
|
|
From: Michal Schmidt <mschmidt@redhat.com>
|
|
Date: Tue, 6 Dec 2011 00:47:28 +0100
|
|
Subject: [PATCH] unit: garbage collect units with load error
|
|
|
|
Units that failed to load were never cleaned up. It was possible to
|
|
reach the 128K limit of units by attempting to load a bunch of nonsense.
|
|
|
|
Bug observed by Reartes Guillermo in
|
|
https://bugzilla.redhat.com/show_bug.cgi?id=680122
|
|
---
|
|
src/unit.c | 1 +
|
|
1 files changed, 1 insertions(+), 0 deletions(-)
|
|
|
|
diff --git a/src/unit.c b/src/unit.c
|
|
index 2a549e2..018e986 100644
|
|
--- a/src/unit.c
|
|
+++ b/src/unit.c
|
|
@@ -858,6 +858,7 @@ fail:
|
|
u->meta.load_state = UNIT_ERROR;
|
|
u->meta.load_error = r;
|
|
unit_add_to_dbus_queue(u);
|
|
+ unit_add_to_gc_queue(u);
|
|
|
|
log_debug("Failed to load configuration for %s: %s", u->meta.id, strerror(-r));
|
|
|
|
--
|
|
1.7.7
|
|
|