Skip to contentSkip to conversation

process: Ensure writes to connect pipes are flushed

PATCH Richard Purdie 1 participant 1 message Mar 30, 2024 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

#1 lore raw
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.

---
 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