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