mirror of
https://github.com/berlin-open-wireless-lab/DAWN.git
synced 2025-03-09 15:40:12 +00:00
general: add memory auditing
memory_utils: added to wrap memory alloc / free general: adjusted stabdard and other memory allocs t be audited
This commit is contained in:
parent
421324486f
commit
d56c5c4e15
14 changed files with 355 additions and 93 deletions
|
|
@ -4,6 +4,7 @@
|
|||
#include <stdlib.h>
|
||||
#include <unistd.h>
|
||||
|
||||
#include "memory_utils.h"
|
||||
#include "datastorage.h"
|
||||
#include "networksocket.h"
|
||||
#include "ubus.h"
|
||||
|
|
@ -30,7 +31,8 @@ void daemon_shutdown() {
|
|||
void signal_handler(int sig) {
|
||||
switch (sig) {
|
||||
case SIGHUP:
|
||||
daemon_shutdown();
|
||||
//daemon_shutdown();
|
||||
dawn_memory_audit();
|
||||
break;
|
||||
case SIGINT:
|
||||
daemon_shutdown();
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue