]> git.ipfire.org Git - thirdparty/systemd.git/commit - src/journal/mmap-cache.c
journal: use context_attach_window() in add_mmap() (#6339)
authorVito Caputo <vcaputo@pengaru.com>
Fri, 14 Jul 2017 17:24:46 +0000 (10:24 -0700)
committerLennart Poettering <lennart@poettering.net>
Fri, 14 Jul 2017 17:24:46 +0000 (19:24 +0200)
commitc7884da9e44b6578e64706e1826af5fb1c25a64e
treef5341f8cf8633a19287916345255e4a05737b3e8
parent7ab6111fdb57ed519388da03d23b43b56706ac05
journal: use context_attach_window() in add_mmap() (#6339)

Instead of context_detach_window() and a manual attach of the new
window, simply call context_attach_window() which performs the
detach first if appropriate.
src/journal/mmap-cache.c