Changeset c621f4aa in mainline for uspace/srv/taskmon/taskmon.c
- Timestamp:
- 2010-07-25T10:11:13Z (15 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 377cce8
- Parents:
- 24a2517 (diff), a2da43c (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
r24a2517 rc621f4aa 44 44 #include <macros.h> 45 45 #include <errno.h> 46 #include <str_error.h> 46 47 47 48 #define NAME "taskmon" … … 49 50 static void fault_event(ipc_callid_t callid, ipc_call_t *call) 50 51 { 51 c har *argv[6];52 c har *fname;52 const char *argv[6]; 53 const char *fname; 53 54 char *dump_fname; 54 55 char *s_taskid; 55 c har **s;56 const char **s; 56 57 57 58 task_id_t taskid; … … 89 90 90 91 printf(NAME ": Executing"); 91 s = argv; 92 93 s = argv; 92 94 while (*s != NULL) { 93 95 printf(" %s", *s); … … 95 97 } 96 98 putchar('\n'); 97 98 if (!task_spawn(fname, argv)) 99 printf(NAME ": Error spawning taskdump.\n", fname); 99 100 int err; 101 if (!task_spawn(fname, argv, &err)) 102 printf("%s: Error spawning %s (%s).\n", NAME, fname, 103 str_error(err)); 100 104 } 101 105
Note:
See TracChangeset
for help on using the changeset viewer.