<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Tue, Apr 11, 2017 at 6:54 AM, Yuya Nishihara <span dir="ltr"><<a href="mailto:yuya@tcha.org" target="_blank">yuya@tcha.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":we" class="a3s aXjCH m15b5d4dd7ec84a3d">255 would be better, too.<br></div></blockquote><div><br></div><div>Done.</div><div> </div><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":we" class="a3s aXjCH m15b5d4dd7ec84a3d"><span class="">> +    if util.safehasattr(req.ui, 'ferr'):<br>
> +        if err is not None and err.errno != errno.EPIPE:<br>
> +            req.ui.ferr.write('abort: %s\n' % err.strerror)<br>
> +        req.ui.ferr.close()<br>
> +    sys.exit(status)<br>
<br>
</span>Is it safe to close stdout and stderr here? IIRC, Python interpreter can<br>
somehow crash due to closed stdout/err on Windows.</div></blockquote><div><br></div><div>The interpreter will crash if the file descriptor backing a file handle is closed, but closing the file handle itself isn't a problem.</div></div></div></div>