]> mj.ucw.cz Git - moe.git/blobdiff - src/box.c
.
[moe.git] / src / box.c
index bcfe233f84345b2043d0f4dbe5a22f18c12c8332..062110f27200e8c0b0966b9e550a0276f8dbb1ee 100644 (file)
--- a/src/box.c
+++ b/src/box.c
@@ -251,6 +251,10 @@ valid_syscall(struct user *u)
       return (filter_syscalls == 1);
     case SYS_times:
       return allow_times;
+    case SYS_kill:
+      if (u->regs.ebx == box_pid)
+       die("Commited suicide by signal %d.", (int)u->regs.ecx);
+      return 0;
     default:
       return 0;
     }