<div dir="ltr"><div>Hi, <br> <br></div><span class="im"><blockquote style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex" class="gmail_quote">There is only a single process so those are not supported at all.</blockquote></span><div>Looking
at testsuites/samples/base_sp, I wonder why TA1 terminates by calling
"exit(0)", when "WEXITSTATUS" (and the rest of this family) has not been
implemented.<br>Is parent able to monitor how child terminated via directives other than WEXITSTATUS?<br><br></div><div>Kind Regards,<br></div>SAeeD<div class="yj6qo ajU"><div id=":nx" class="ajR" tabindex="0"><img class="ajT" src="https://ssl.gstatic.com/ui/v1/icons/mail/images/cleardot.gif"></div></div></div><div class="gmail_extra"><br><div class="gmail_quote">On Tue, Aug 11, 2015 at 8:06 PM, Joel Sherrill <span dir="ltr"><<a href="mailto:joel.sherrill@oarcorp.com" target="_blank">joel.sherrill@oarcorp.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class=""><br>
<br>
On 8/11/2015 11:28 AM, Saeed Ehteshamifar wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Hi,<br>
<br>
Because of different process model, RTEMS doesn't support processes. Therefore many POSIX functions (like fork, exec*) are unimplementable on RTEMS.<br>
Now my question is how to monitor child thread status (if it is correct to use the term "child" in this context) just like what "waitpid" does? Does it make a difference if the thread has been created via classical API or POSIX?<br>
More specifically, I'm interested to directives like WIFEXITED, WEXITSTATUS, WIFSIGNALED, etc.<br>
</blockquote>
<br></span>
There is only a single process so those are not supported at all.<br>
<br>
If a thread crashes with a memory fault, the CPU will generate a trap<br>
and the entire program is halted.<br>
<br>
<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
Kind Regards,<br>
SAeeD<span class="HOEnZb"><font color="#888888"><br>
</font></span></blockquote><span class="HOEnZb"><font color="#888888">
<br>
-- <br>
Joel Sherrill, Ph.D. Director of Research & Development<br>
joel.sherrill@OARcorp.com On-Line Applications Research<br>
Ask me about RTEMS: a free RTOS Huntsville AL 35805<br>
Support Available <a href="tel:%28256%29%20722-9985" value="+12567229985" target="_blank">(256) 722-9985</a><br>
</font></span></blockquote></div><br></div>