Hi again, Enh at google suggested [1] that `setlinebuf (stderr)` could be an alternative instead of opening a copy of stderr. I tried out the attached patch, which removes the buferr variable and uses setlinebuf on stderr instead, and it seem to work (in the sense that emacs opens and closes without errors) on archlinux as well as android. Could this work or do we need to have both buferr and stderr? Best regards, Henrik Grimler [1] https://issuetracker.google.com/issues/184380442