- **status**: review --> fixed
- **Comment**:

default(5.1) [staging:6fe481]
changeset:   7766:6fe48141de2f
user:        Hung Nguyen <[email protected]>
date:        Wed Jun 29 13:18:57 2016 +0700
summary:     imm: Fix the problem with IMMND killing PBE [#1899]

opensaf-5.0.x [staging:70f16a]
changeset:   7767:70f16ad3bbf5
user:        Hung Nguyen <[email protected]>
date:        Wed Jun 29 13:18:57 2016 +0700
summary:     imm: Fix the problem with IMMND killing PBE [#1899]




---

** [tickets:#1899] imm: IMMND kills itself**

**Status:** fixed
**Milestone:** 5.0.1
**Created:** Wed Jun 29, 2016 06:13 AM UTC by Hung Nguyen
**Last Updated:** Wed Jun 29, 2016 06:21 AM UTC
**Owner:** Hung Nguyen


If the current coordinator is on PL and the cluster goes headless, the IMMND 
will remove its coordinator role.
Killing pbe is part of that process.

            /* Check if pbe process is terminated.
             * Will send SIGKILL if it's not terminated. */
            int status = 0;
            if (waitpid(cb->pbePid, &status, WNOHANG) > 0) {
                cb->pbePid = 0;
                LOG_NO("PBE has terminated due to SC absence");
            } else {
                cb->pbePid = 0;
                LOG_WA("SC were absent and PBE appears hung, sending SIGKILL");
                kill(cb->pbePid, SIGKILL);
            }

In the code, pbePid is set to zero before calling kill.
That makes IMMND kill itself.


---

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.
------------------------------------------------------------------------------
Attend Shape: An AT&T Tech Expo July 15-16. Meet us at AT&T Park in San
Francisco, CA to explore cutting-edge tech and listen to tech luminaries
present their vision of the future. This family event has something for
everyone, including kids. Get more information and register today.
http://sdm.link/attshape
_______________________________________________
Opensaf-tickets mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to