Changeset 15d0046 in mainline for uspace/srv/taskmon/taskmon.c
- Timestamp:
- 2014-09-12T13:22:33Z (10 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 9b20126
- Parents:
- 8db09e4 (diff), 105d8d6 (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/taskmon/taskmon.c
r8db09e4 r15d0046 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.