<html><head><meta http-equiv="content-type" content="text/html; charset=utf-8"></head><body 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><br>On Jul 28, 2016, at 1:20 PM, Ajay Garg <<a href="mailto:ajaygargnsit@gmail.com">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">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 class="gmail_signature">Thanks and Regards,<br>Ajay<br></div>
</div></div></div></div></div></div>
</div></blockquote><blockquote type="cite"><div><span>_______________________________________________</span><br><span>Raspbian-devel mailing list</span><br><span><a href="mailto:Raspbian-devel@lists.alioth.debian.org">Raspbian-devel@lists.alioth.debian.org</a></span><br><span><a href="http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/raspbian-devel">http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/raspbian-devel</a></span></div></blockquote></body></html>