- **status**: review --> fixed
- **Milestone**: 5.0.2 --> 5.17.06
- **Comment**:

5.17.08 (develop) [code:11325e]
~~~
commit 11325e3b7643c4d0500771ef7e022fcc47f1d31a
Author: Hung Nguyen <hung.d.ngu...@dektech.com.au>
Date:   Thu Apr 20 14:37:18 2017 +0700

    imm: Use waitpid with WNOHANG to check for sync process and pbe process 
[#2420]

    Use waitpid with WNOHANG to check for sync process and pbe process.
    The processes are checked before resending the intro message.
    The intro message is only sent when those processes exit.
~~~
</br>
5.17.06 (release) [code:51233a]
~~~
commit 51233a54a11809ac48e27c043361b0ac95c5b71a
Author: Hung Nguyen <hung.d.ngu...@dektech.com.au>
Date:   Thu Apr 20 14:37:18 2017 +0700

    imm: Use waitpid with WNOHANG to check for sync process and pbe process 
[#2420]

    Use waitpid with WNOHANG to check for sync process and pbe process.
    The processes are checked before resending the intro message.
    The intro message is only sent when those processes exit.
~~~
</br>
default (mecurial) [staging:2aa1ed]
~~~
changeset:   8773:2aa1edbd41e9
user:        Hung Nguyen <hung.d.ngu...@dektech.com.au>
date:        Tue Apr 11 19:05:48 2017 +0700
summary:     imm: Use waitpid with WNOHANG to check for sync process and pbe 
process [#2420]
~~~



---

** [tickets:#2420] imm: IMMND on PL hangs when headless**

**Status:** fixed
**Milestone:** 5.17.06
**Created:** Tue Apr 11, 2017 07:13 AM UTC by Hung Nguyen
**Last Updated:** Tue Apr 11, 2017 12:11 PM UTC
**Owner:** Hung Nguyen


IMMND on PL hangs at waitpid() after coordinator removal.

When pbe process is in D State (Uninterruptible sleep (usually IO)), waitpid() 
will be hung if WNOHANG is not specified.

~~~
    LOG_WA("SC were absent and PBE appears hung, sending SIGKILL");
    kill(cb->pbePid, SIGKILL);
    waitpid(cb->pbePid, NULL, 0);
~~~
The bug is introduced by [#2296].

Solution: Use waitpid() with WNOHANG specified. Check for pbe/sync process 
exiting before sending introduce message during headless.


---

Sent from sourceforge.net because opensaf-tickets@lists.sourceforge.net 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.
------------------------------------------------------------------------------
Check out the vibrant tech community on one of the world's most
engaging tech sites, Slashdot.org! http://sdm.link/slashdot
_______________________________________________
Opensaf-tickets mailing list
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to