Added a forced buffer flush on each worker stdin write (#2057)

This commit is contained in:
Anton Hvornum 2023-09-16 14:58:20 +02:00 committed by GitHub
parent 06d46ac762
commit 2cc0d64619
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 0 deletions

View File

@ -217,6 +217,7 @@ class SysCommandWorker:
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