]> git.ipfire.org Git - thirdparty/systemd.git/commit
process-util: move sync() out of freeze() 21094/head
authorLennart Poettering <lennart@poettering.net>
Fri, 22 Oct 2021 14:37:10 +0000 (16:37 +0200)
committerLennart Poettering <lennart@poettering.net>
Fri, 22 Oct 2021 14:37:10 +0000 (16:37 +0200)
commit43cac49092ec99802d74b1d6279d4d27a4048829
tree736978e0c5842f9c759c3c2ccb2451d3d25babac
parent979b0ff2c4dbebb3c04e3bca22be18e82a631098
process-util: move sync() out of freeze()

We are using this for creating userns namespaces, and we really
shouldn't try to sync there. Moreover the use of free() in shutdown code
doesn't need it anyway, since it just sync()ed right before anyway. Only
the third user of freeze() we have actually needs the syc(), hence do it
there and nowhere else.
src/basic/process-util.c
src/core/main.c