panic (and show fill trace) if we try to delete a NULL aproc

This commit is contained in:
Alexandre Ratchov 2012-04-17 16:33:16 +02:00
parent 1247c187a7
commit 2775f46e12
1 changed files with 6 additions and 0 deletions

View File

@ -173,6 +173,12 @@ aproc_del(struct aproc *p)
{
struct abuf *i;
#ifdef DEBUG
if (!p) {
dbg_puts("aproc_del: called with NULL argument\n");
dbg_panic();
}
#endif
if (!(p->flags & APROC_ZOMB)) {
#ifdef DEBUG
if (debug_level >= 3) {