summaryrefslogtreecommitdiff
blob: 3d6409945e767d036405c162114bda6a059bfc01 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
Index: linux-2.6.17/kernel/vserver/signal.c
===================================================================
--- linux-2.6.17.orig/kernel/vserver/signal.c
+++ linux-2.6.17/kernel/vserver/signal.c
@@ -51,6 +51,9 @@ int vx_info_kill(struct vx_info *vxi, in
 	case 1:
 		if (vxi->vx_initpid) {
 			pid = vxi->vx_initpid;
+			/* for now, only SIGINT to non admin init */
+			if (!vx_info_flags(vxi, VXF_STATE_ADMIN, 0))
+				sig = SIGINT;
 			priv = 1;
 		}
 		/* fallthrough */