]> mj.ucw.cz Git - moe.git/commitdiff
Added exception for suicide by tgkill().
authorMartin Mares <mj@ucw.cz>
Sun, 25 Mar 2007 17:54:14 +0000 (17:54 +0000)
committerMartin Mares <mj@ucw.cz>
Sun, 25 Mar 2007 17:54:14 +0000 (17:54 +0000)
src/box.c

index edfbace4b6a79d388d983aacc078bfacc6baff5a..095c8843ebdbe11d8b2342e45ab557339f1ab9d7 100644 (file)
--- 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;
     }