Skip to content

Commit

Permalink
Added a forced buffer flush on each worker stdin write (#2057)
Browse files Browse the repository at this point in the history
  • Loading branch information
Torxed authored Sep 16, 2023
1 parent 06d46ac commit 2cc0d64
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions archinstall/lib/general.py
Original file line number Diff line number Diff line change
Expand Up @@ -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

Expand Down

0 comments on commit 2cc0d64

Please sign in to comment.