Added assert to syslib. Moved panic from sysutil to syslib for assert.

Panic now tries sys_kill with SIGKILL first.
This commit is contained in:
Philip Homburg
2006-03-15 12:06:18 +00:00
parent c1da6e6e24
commit 36e8c1a185
4 changed files with 21 additions and 4 deletions
+14
View File
@@ -0,0 +1,14 @@
/*
* assert.c - diagnostics
*/
#include <assert.h>
#include <stdio.h>
#include <minix/config.h>
#include <minix/const.h>
#include <minix/sysutil.h>
void __bad_assertion(const char *mess) {
printf("%s", mess);
panic(NULL, NULL, NO_NUM);
}