OpenVZ Forum


Home » Mailing lists » Devel » [PATCH] Use kill_cad_pid() in ip22-reset.c
[PATCH] Use kill_cad_pid() in ip22-reset.c [message #16715] Tue, 19 September 2006 22:49 Go to next message
Sukadev Bhattiprolu is currently offline  Sukadev Bhattiprolu
Messages: 413
Registered: August 2006
Senior Member
This is very similar to Cedric's change to ip32-reset.c in the cad_pid
patch.

Suka
---


Use kill_cad_pid() to signal the init process instead of the hard coded pid 1.

Signed-off-by: Sukadev Bhattiprolu <sukadev@us.ibm.com>
Cc: Cedric Le Goater <clg@fr.ibm.com>
Cc: Dave Hansen <haveblue@us.ibm.com>
Cc: Serge Hallyn <serue@us.ibm.com>
Cc: containers@lists.osdl.org

---
 arch/mips/sgi-ip22/ip22-reset.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

Index: lx26-18-rc6-mm2/arch/mips/sgi-ip22/ip22-reset.c
===================================================================
--- lx26-18-rc6-mm2.orig/arch/mips/sgi-ip22/ip22-reset.c	2006-09-19 15:37:58.000000000 -0700
+++ lx26-18-rc6-mm2/arch/mips/sgi-ip22/ip22-reset.c	2006-09-19 15:38:20.000000000 -0700
@@ -123,7 +123,7 @@ static inline void power_button(void)
 	if (machine_state & MACHINE_PANICED)
 		return;
 
-	if ((machine_state & MACHINE_SHUTTING_DOWN) || kill_proc(1,SIGINT,1)) {
+	if ((machine_state & MACHINE_SHUTTING_DOWN) || kill_cad_pid(SIGINT,1)) {
 		/* No init process or button pressed twice.  */
 		sgi_machine_power_off();
 	}
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Re: [PATCH] Use kill_cad_pid() in ip22-reset.c [message #16716 is a reply to message #16715] Wed, 20 September 2006 09:40 Go to previous message
Cedric Le Goater is currently offline  Cedric Le Goater
Messages: 443
Registered: February 2006
Senior Member
Sukadev Bhattiprolu wrote:

> This is very similar to Cedric's change to ip32-reset.c in the cad_pid
> patch.

I just sent out that patch suka :) 

C.
_______________________________________________
Containers mailing list
Containers@lists.osdl.org
https://lists.osdl.org/mailman/listinfo/containers
Previous Topic: [patch00/05]: Containers(V2)- Introduction
Next Topic: [Patch04/05]- Containers: Core Container support
Goto Forum:
  


Current Time: Tue Jul 29 11:37:52 GMT 2025

Total time taken to generate the page: 0.33675 seconds