From 2cc0d64619671fbc91a5f3a090c7c239be1d8a84 Mon Sep 17 00:00:00 2001 From: Anton Hvornum Date: Sat, 16 Sep 2023 14:58:20 +0200 Subject: [PATCH] Added a forced buffer flush on each worker stdin write (#2057) --- archinstall/lib/general.py | 1 + 1 file changed, 1 insertion(+) diff --git a/archinstall/lib/general.py b/archinstall/lib/general.py index c1db6fb305..611378eefa 100644 --- a/archinstall/lib/general.py +++ b/archinstall/lib/general.py @@ -217,6 +217,7 @@ def write(self, data: bytes, line_ending :bool = True) -> int: if self.child_fd: return os.write(self.child_fd, data + (b'\n' if line_ending else b'')) + os.fsync(self.child_fd) return 0