Don't mask useful user signals on UNIX.
[bertos.git] / kern / monitor.c
index 80a77329bfdd111d4a020b3f0ef1cac67c887a0f..a64fceb25874f3843334b48ac3bcfa5fea1e8eff 100755 (executable)
@@ -2,7 +2,7 @@
  * \file
  * <!--
  * Copyright 2004 Develer S.r.l. (http://www.develer.com/)
- * This file is part of DevLib - See devlib/README for information.
+ * This file is part of DevLib - See README.devlib for information.
  * -->
  *
  * \brief Monitor to check for stack overflows
 
 /*#*
  *#* $Log$
+ *#* Revision 1.5  2005/11/04 16:20:02  bernie
+ *#* Fix reference to README.devlib in header.
+ *#*
+ *#* Revision 1.4  2005/04/11 19:10:28  bernie
+ *#* Include top-level headers from cfg/ subdir.
+ *#*
+ *#* Revision 1.3  2004/11/28 23:20:25  bernie
+ *#* Remove obsolete INITLIST macro.
+ *#*
+ *#* Revision 1.2  2004/10/26 09:01:15  bernie
+ *#* monitor_rename(): New function.
+ *#*
  *#* Revision 1.1  2004/10/03 20:39:03  bernie
  *#* Import in DevLib.
  *#*
@@ -33,8 +45,8 @@
 #include <mware/list.h>
 #include <drv/timer.h>
 #include <kern/proc.h>
-#include <macros.h>
-#include <debug.h>
+#include <cfg/macros.h>
+#include <cfg/debug.h>
 
 
 static List MonitorProcs;
@@ -42,7 +54,7 @@ static List MonitorProcs;
 
 void monitor_init(void)
 {
-       INITLIST(&MonitorProcs);
+       LIST_INIT(&MonitorProcs);
 }
 
 
@@ -61,6 +73,11 @@ void monitor_remove(Process* proc)
        REMOVE(&proc->monitor.link);
 }
 
+void monitor_rename(Process *proc, const char* name)
+{
+       proc->monitor.name = name;
+}
+
 #define MONITOR_NODE_TO_PROCESS(node) \
        (struct Process*)((char*)(node) - offsetof(struct Process, monitor.link))