[systemd-commits] src/swap.c

Lennart Poettering lennart at kemper.freedesktop.org
Mon Aug 9 13:44:59 PDT 2010


 src/swap.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 76143638fdabee59dcd5db81fe46c900299da425
Author: Lennart Poettering <lennart at poettering.net>
Date:   Mon Aug 9 22:44:52 2010 +0200

    swap: properly enter maintenance mode on failure

diff --git a/src/swap.c b/src/swap.c
index 6765a4a..2900671 100644
--- a/src/swap.c
+++ b/src/swap.c
@@ -400,7 +400,7 @@ static void swap_dump(Unit *u, FILE *f, const char *prefix) {
 static void swap_enter_dead(Swap *s, bool success) {
         assert(s);
 
-        swap_set_state(s, success ? SWAP_MAINTENANCE : SWAP_DEAD);
+        swap_set_state(s, success ? SWAP_DEAD : SWAP_MAINTENANCE);
 }
 
 static int swap_start(Unit *u) {


More information about the systemd-commits mailing list