Changeset c621f4aa in mainline for uspace/srv/taskmon/taskmon.c


Ignore:
Timestamp:
2010-07-25T10:11:13Z (15 years ago)
Author:
Jakub Jermar <jakub@…>
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.
Message:

Merge with mainline.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/taskmon/taskmon.c

    r24a2517 rc621f4aa  
    4444#include <macros.h>
    4545#include <errno.h>
     46#include <str_error.h>
    4647
    4748#define NAME  "taskmon"
     
    4950static void fault_event(ipc_callid_t callid, ipc_call_t *call)
    5051{
    51         char *argv[6];
    52         char *fname;
     52        const char *argv[6];
     53        const char *fname;
    5354        char *dump_fname;
    5455        char *s_taskid;
    55         char **s;
     56        const char **s;
    5657
    5758        task_id_t taskid;
     
    8990
    9091        printf(NAME ": Executing");
    91         s = argv;
     92       
     93        s = argv;
    9294        while (*s != NULL) {
    9395                printf(" %s", *s);
     
    9597        }
    9698        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));
    100104}
    101105
Note: See TracChangeset for help on using the changeset viewer.