summaryrefslogtreecommitdiff
path: root/src/basic/process-util.c
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2021-10-22 16:37:10 +0200
committerLennart Poettering <lennart@poettering.net>2021-10-22 16:37:10 +0200
commit43cac49092ec99802d74b1d6279d4d27a4048829 (patch)
tree736978e0c5842f9c759c3c2ccb2451d3d25babac /src/basic/process-util.c
parent979b0ff2c4dbebb3c04e3bca22be18e82a631098 (diff)
downloadsystemd-43cac49092ec99802d74b1d6279d4d27a4048829.tar.gz
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.
Diffstat (limited to 'src/basic/process-util.c')
-rw-r--r--src/basic/process-util.c2
1 files changed, 0 insertions, 2 deletions
diff --git a/src/basic/process-util.c b/src/basic/process-util.c
index fce96dd5eb..38df34e339 100644
--- a/src/basic/process-util.c
+++ b/src/basic/process-util.c
@@ -1624,8 +1624,6 @@ _noreturn_ void freeze(void) {
/* Make sure nobody waits for us on a socket anymore */
(void) close_all_fds_full(NULL, 0, false);
- sync();
-
/* Let's not freeze right away, but keep reaping zombies. */
for (;;) {
siginfo_t si = {};