<div dir="ltr">Agree, but I think it's also a good practice to guard against known cases that are prone to crashes. </div><br><div class="gmail_quote gmail_quote_container"><div dir="ltr" class="gmail_attr">On Tue, Jul 22, 2025 at 9:14 PM Bruce Richardson <<a href="mailto:bruce.richardson@intel.com">bruce.richardson@intel.com</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, Jul 22, 2025 at 09:01:42PM +0500, Khadem Ullah wrote:<br>
>    Thanks for the follow up.<br>
>    Understood. That makes sense. However, I’d like to highlight that<br>
>    applications should ideally be robust and interactive enough to handle<br>
>    all edge cases where a segfault or unexpected error might occur. While<br>
>    clear documentation is certainly important, relying solely on it may<br>
>    not be sufficient. In my view, potential segfaults should be handled<br>
>    explicitly in code to ensure stability and to prevent silent failures,<br>
>    especially in production environments.<br>
> <br>
In fairness, where stability is the main concern, I'd generally recommend<br>
avoiding multi-process entirely. Or, if it has to be used, the primary<br>
process should be a minimal slim one, that sets up the ports and memory and<br>
thereafter sleeps so that it should never crash unexpectedly!<br>
<br>
Even with that, if any secondary process dies, you'll still have all the<br>
buffers in use by that secondary process leaked, so for any multiprocess<br>
system the only safe behaviour for the system is to restart all processes<br>
if any process unexpectedly terminate.<br>
<br>
/Bruce<br>
</blockquote></div><div><br clear="all"></div><br><span class="gmail_signature_prefix">-- </span><br><div dir="ltr" class="gmail_signature"><div dir="ltr"><div><div dir="ltr"><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><span style="color:rgb(12,100,192)">Engr. Khadem Ullah, </span><br></div><div style="font-family:Calibri,Arial,Helvetica,sans-serif;font-size:12pt;color:rgb(0,0,0)"><span style="color:rgb(12,100,192)">Software Engineer, </span><br></div><span style="color:rgb(12,100,192)">Dreambig Semiconductor Inc <br></span></div><div dir="ltr"><span style="color:rgb(12,100,192)"><a href="https://dreambigsemi.com/" target="_blank">https://dreambigsemi.com/</a><br></span></div></div></div></div>