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:
@@ -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);
|
||||
}
|
||||
Reference in New Issue
Block a user