Attention is currently required from: Jack Rosenthal. Nico Huber has posted comments on this change. ( https://review.coreboot.org/c/flashrom/+/52215 )
Change subject: linux_mtd: prevent corruption of flash when stdout/stderr is closed ......................................................................
Patch Set 1: Code-Review+1
(1 comment)
Patchset:
PS1: I don't know about POSIX, but if `stdout`/`stderr` from `stdio.h` are not what they are supposed to be, it's not C :)
Can you add some more details what actually led to the situation? Maybe other people can learn from it ;) Or maybe there's even something to fix in your libc.
Generally, as this seems to be a problem of the CLI (flashrom_ print_cb() using stdout/stderr I guess), I'd prefer a patch for the CLI, e.g. check if fstat() works on them or something like that. Other programmers might suffer the same.