Changes in uspace/srv/taskmon/taskmon.c [92c1680:1c635d6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/taskmon/taskmon.c
r92c1680 r1c635d6 40 40 #include <sys/typefmt.h> 41 41 #include <task.h> 42 #include <event.h>43 42 #include <ipc/corecfg.h> 44 43 #include <loc.h> … … 53 52 static void corecfg_client_conn(ipc_callid_t , ipc_call_t *, void *); 54 53 55 static void fault_event(ipc_callid_t callid, ipc_call_t *call )54 static void fault_event(ipc_callid_t callid, ipc_call_t *call, void *arg) 56 55 { 57 56 const char *fname; … … 83 82 84 83 printf(NAME ": Executing %s -c %s -t %s\n", fname, dump_fname, s_taskid); 85 rc = task_spawnl(NULL, fname, fname, "-c", dump_fname, "-t", s_taskid,84 rc = task_spawnl(NULL, NULL, fname, fname, "-c", dump_fname, "-t", s_taskid, 86 85 NULL); 87 86 } else { 88 87 printf(NAME ": Executing %s -t %s\n", fname, s_taskid); 89 rc = task_spawnl(NULL, fname, fname, "-t", s_taskid, NULL);88 rc = task_spawnl(NULL, NULL, fname, fname, "-t", s_taskid, NULL); 90 89 } 91 90 … … 143 142 write_core_files = false; 144 143 #endif 145 if ( event_subscribe(EVENT_FAULT, 0) != EOK) {144 if (async_event_subscribe(EVENT_FAULT, fault_event, NULL) != EOK) { 146 145 printf("%s: Error registering fault notifications.\n", NAME); 147 146 return -1; … … 165 164 } 166 165 167 async_set_interrupt_received(fault_event);168 166 task_retval(0); 169 167 async_manager();
Note:
See TracChangeset
for help on using the changeset viewer.