- **status**: assigned --> review


---

** [tickets:#3130] mds: mdstest 27 4 stuck forever**

**Status:** review
**Milestone:** 5.20.01
**Created:** Tue Dec 17, 2019 03:38 AM UTC by Thuan Tran
**Last Updated:** Tue Dec 17, 2019 03:38 AM UTC
**Owner:** Thuan Tran


mdstest 27 4 may stuck forever at wait() if other receiver already exited 
before.
wait() will wait for sender (as child) which never exit() by itself but to be 
killed later.
~~~
wait(&status);
if (WIFEXITED(status) && \
          (WEXITSTATUS(status) != 0)) {
...
~~~
Should use waitpid() to wait for other receiver exactly.
To reproduce: add sleep(10) before wait() then the issue will happen.


---

Sent from sourceforge.net because [email protected] is 
subscribed to https://sourceforge.net/p/opensaf/tickets/

To unsubscribe from further messages, a project admin can change settings at 
https://sourceforge.net/p/opensaf/admin/tickets/options.  Or, if this is a 
mailing list, you can unsubscribe from the mailing list.
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to