Bug 13985 - Send error information to stderr/stdout immediately (disable buffering)
Summary: Send error information to stderr/stdout immediately (disable buffering)
Status: RESOLVED FIXED
Alias: None
Product: opkg
Classification: Yocto Project Subprojects
Component: opkg (show other bugs)
Version: 0.4.3
Hardware: x86 Multiple
: Undecided normal
Target Milestone: 0.4.4
Assignee: Alejandro del Castillo
QA Contact:
URL:
Whiteboard:
Depends on:
Blocks:
 
Reported: 2020-07-17 14:23 UTC by Alejandro del Castillo
Modified: 2020-08-03 07:32 UTC (History)
0 users

See Also:
OS type for building Yocto: ---
Type of Regression: ---
Verified:
Documentation change: No (bug/feature does not impact docs)


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Alejandro del Castillo 2020-07-17 14:23:25 UTC
Opkg currently buffers the errors into errlist. Before exit, opkg calls print_error_list to show all the collected errors. This approach makes it hard to debug issues when opkg crashes, since the errlist is never written to disk. We should get rid of buffering and directly output to the correct stream.
Comment 1 Alejandro del Castillo 2020-08-03 07:32:12 UTC
fixed on 9796b885941bced7d4899dd7bf3e658d75c1d7c2