From 28a5f9efe1f794bd20def0b7a08ed1124629f0ff Mon Sep 17 00:00:00 2001 From: Martin Mares Date: Sun, 25 Mar 2007 17:54:14 +0000 Subject: [PATCH] Added exception for suicide by tgkill(). --- src/box.c | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/box.c b/src/box.c index edfbace..095c884 100644 --- a/src/box.c +++ b/src/box.c @@ -266,6 +266,10 @@ valid_syscall(struct user *u) if (u->regs.ebx == box_pid) die("Commited suicide by signal %d.", (int)u->regs.ecx); return 0; + case __NR_tgkill: + if (u->regs.ebx == box_pid && u->regs.ecx == box_pid) + die("Commited suicide by signal %d.", (int)u->regs.edx); + return 0; default: return 0; } -- 2.39.5