- **status**: review --> fixed
- **Comment**:
commit ada4f2e9aa2ccd5ebe7ae7216051e09a5dc46175 (HEAD -> develop,
origin/develop, ticket-3130)
Author: thuan.tran <[email protected]>
Date: Tue Dec 17 10:39:07 2019 +0700
mds: update mdstest 27 4 to use waitpid() [#3130]
Wait() may stuck forever if other receiver already exited before.
---
** [tickets:#3130] mds: mdstest 27 4 stuck forever**
**Status:** fixed
**Milestone:** 5.20.01
**Created:** Tue Dec 17, 2019 03:38 AM UTC by Thuan Tran
**Last Updated:** Tue Dec 17, 2019 03:50 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