<p dir="ltr">Yep Jeff, I understand the stack-overflow link :)</p>
<p dir="ltr">I was wanting to know the behaviour of Raspbian-kernel; whether or not it automatically closes any opened streams on exit (like glibc does).</p>
<div class="gmail_extra"><br><div class="gmail_quote">On 29 Jul 2016 1:57 a.m., "Jeff Loughlin" <<a href="mailto:loughlinjd@gmail.com">loughlinjd@gmail.com</a>> wrote:<br type="attribution"><blockquote class="quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="auto"><div></div><div>The answers to that Stack Overflow question seem pretty clear to me. What exactly do you need clarified?  It's not the OS but the C RTL, and the standard doesn't specify. To me, that means you better flush and close your streams before you call exit(), or your program is likely to break. </div><div class="elided-text"><div><br>On Jul 28, 2016, at 1:20 PM, Ajay Garg <<a href="mailto:ajaygargnsit@gmail.com" target="_blank">ajaygargnsit@gmail.com</a>> wrote:<br><br></div><blockquote type="cite"><div><div dir="ltr"><div><div><div><div>Hi All.<br><br></div>I have been doing some testing on the Raspbian on Pi-2, and I spuriously run into some vague issues.<br><br></div>Firstly, I admit that I do call "exit()" at some points of my program, without closing the open file-streams (instead relying on the OS to do it).<br><br></div>In this pursuit, I was investigating, and <a href="http://stackoverflow.com/questions/7281255/why-is-data-not-being-flushed-to-file-on-process-exit" target="_blank">http://stackoverflow.com/questions/7281255/why-is-data-not-being-flushed-to-file-on-process-exit</a> suggests that closing-of-open-file-streams-upon-process-exit is OS-dependent.<br><br></div>So, will be grateful if someone could enlighten me in this context as far as Raspbian is concerned?<br clear="all"><div><div><div><div><div><br><br><div>Thanks and Regards,<br>Ajay<br></div>
</div></div></div></div></div></div>
</div></blockquote></div><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Raspbian-devel mailing list</span><br><span><a href="mailto:Raspbian-devel@lists.alioth.debian.org" target="_blank">Raspbian-devel@lists.alioth.debian.org</a></span><br><span><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/raspbian-devel" target="_blank">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/raspbian-devel</a></span></div></blockquote></div></blockquote></div><br></div>