process: Ensure writes to connect pipes are flushed
Quoted 8 lines · Richard Purdie via lists.openembedded.org
In looking into a bitbake 'hang' on the autobuilders, it looked very much like the server had finished a computation and was looping at idle but the UI didn't see it. Adding in some
os.fsync()calls should
help avoid this potential problem (but may cause other timeout/IO load
issues unfortunately).
Quoted 7 lines
The exception handling is needed since some writes cause the pipe to close immediately so the flush would error.
Signed-off-by Richard Purdie <[email protected]>---
lib/bb/server/process.py | 4 ++++1 file changed, 4 insertions(+)
I suspect the issue I was debugging was something a little different (bug in tinfoil test code in sstatetests in OE-Core) and this patch probably isn't needed.
Cheers,
Richard