<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style type="text/css" id="owaParaStyle">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body fpstyle="1" ocsi="0">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">Thanks, good catch. There are various log flushes already there, so the &quot;final&quot; flush
<br>
not being executed went undetected in testing, may not even be needed any more. <br>
I am surprised I did not get any python warnings though.<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div id="divRpF706133" style="direction: ltr;"><font size="2" color="#000000" face="Tahoma"><b>From:</b> Christopher Larson [kergoth@gmail.com]<br>
<b>Sent:</b> Tuesday, June 13, 2017 8:46 AM<br>
<b>To:</b> Bystricky, Juro<br>
<b>Cc:</b> bitbake-devel@lists.openembedded.org; Purdie, Richard; Juro Bystricky; paul.eggleton@linux.intel.com<br>
<b>Subject:</b> Re: [bitbake-devel] [PATCH 1/1] bitbake:process: flush stderr/stdout to log<br>
</font><br>
</div>
<div></div>
<div>
<div dir="ltr">
<div class="gmail_extra"><br>
<div class="gmail_quote">On Mon, Jun 12, 2017 at 10:12 AM, Juro Bystricky <span dir="ltr">
&lt;<a href="mailto:juro.bystricky@intel.com" target="_blank">juro.bystricky@intel.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex; border-left:1px #ccc solid; padding-left:1ex">
<div id=":25s" class="a3s aXjCH m15c9d4ad91752e18">-&nbsp; &nbsp; finally:<br>
-&nbsp; &nbsp; &nbsp; &nbsp; log.flush()<br>
-<br>
-&nbsp; &nbsp; readextras([fobj for fobj, _ in extrafiles])<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; &nbsp; &nbsp; read_all_pipes(log, rin, outdata, errdata)<br>
&#43;<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; # Pocess closed, drain all pipes...<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; read_all_pipes(log, rin, outdata, errdata)<br>
&#43;&nbsp; &nbsp; finally:<br>
&#43;&nbsp; &nbsp; &nbsp; &nbsp; log.flush</div>
</blockquote>
</div>
<br>
You forgot a (), so you aren’t actually running flush here.<br>
-- <br>
<div class="gmail_signature">
<div dir="ltr">
<div>
<div dir="ltr">Christopher Larson<br>
kergoth at gmail dot com<br>
Founder - BitBake, OpenEmbedded, OpenZaurus<br>
Senior Software Engineer, Mentor Graphics</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</div>
</body>
</html>