Ignore:
File:
1 edited

Legend:

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

    r92c1680 r1c635d6  
    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.