X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?a=blobdiff_plain;f=src%2Fswap.c;h=ef001a98bfc1c193ead87be6fd4f673731058f6e;hb=9131f660eedb29d18a29e6efff49c485e683c56c;hp=66bf5c2bfbffae371099b118def1d499c975b32d;hpb=cd25cce98f5cc930202212c3c9c13605c09698b4;p=elogind.git diff --git a/src/swap.c b/src/swap.c index 66bf5c2bf..ef001a98b 100644 --- a/src/swap.c +++ b/src/swap.c @@ -90,6 +90,8 @@ static void swap_unset_proc_swaps(Swap *s) { s->timer_watch.type = WATCH_INVALID; s->control_command_id = _MOUNT_EXEC_COMMAND_INVALID; + + s->meta.ignore_on_isolate = true; } static void swap_unwatch_control_pid(Swap *s) { @@ -687,6 +689,7 @@ static void swap_enter_signal(Swap *s, SwapState state, bool success) { wait_for_exit = true; set_free(pid_set); + pid_set = NULL; } } @@ -1338,7 +1341,6 @@ const UnitVTable swap_vtable = { .no_alias = true, .no_instances = true, - .no_isolate = true, .show_status = true, .init = swap_init,