Changeset 15d0046 in mainline for uspace/srv/taskmon/taskmon.c


Ignore:
Timestamp:
2014-09-12T13:22:33Z (11 years ago)
Author:
Vojtech Horky <vojtechhorky@…>
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.
Message:

Merge mainline changes

File:
1 edited

Legend:

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

    r8db09e4 r15d0046  
    4040#include <sys/typefmt.h>
    4141#include <task.h>
    42 #include <event.h>
    4342#include <ipc/corecfg.h>
    4443#include <loc.h>
     
    5352static void corecfg_client_conn(ipc_callid_t , ipc_call_t *, void *);
    5453
    55 static void fault_event(ipc_callid_t callid, ipc_call_t *call)
     54static void fault_event(ipc_callid_t callid, ipc_call_t *call, void *arg)
    5655{
    5756        const char *fname;
     
    8382
    8483                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,
    8685                    NULL);
    8786        } else {
    8887                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);
    9089        }
    9190
     
    143142        write_core_files = false;
    144143#endif
    145         if (event_subscribe(EVENT_FAULT, 0) != EOK) {
     144        if (async_event_subscribe(EVENT_FAULT, fault_event, NULL) != EOK) {
    146145                printf("%s: Error registering fault notifications.\n", NAME);
    147146                return -1;
     
    165164        }
    166165       
    167         async_set_interrupt_received(fault_event);
    168166        task_retval(0);
    169167        async_manager();
Note: See TracChangeset for help on using the changeset viewer.