---

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

**Status:** accepted
**Milestone:** 5.0.1
**Created:** Wed Jun 29, 2016 06:13 AM UTC by Hung Nguyen
**Last Updated:** Wed Jun 29, 2016 06:13 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 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.
------------------------------------------------------------------------------
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
Opensaf-tickets@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/opensaf-tickets

Reply via email to