Ignore:
File:
1 edited

Legend:

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

    r1c635d6 r92c1680  
    4040#include <sys/typefmt.h>
    4141#include <task.h>
     42#include <event.h>
    4243#include <ipc/corecfg.h>
    4344#include <loc.h>
     
    5253static void corecfg_client_conn(ipc_callid_t , ipc_call_t *, void *);
    5354
    54 static void fault_event(ipc_callid_t callid, ipc_call_t *call, void *arg)
     55static void fault_event(ipc_callid_t callid, ipc_call_t *call)
    5556{
    5657        const char *fname;
     
    8283
    8384                printf(NAME ": Executing %s -c %s -t %s\n", fname, dump_fname, s_taskid);
    84                 rc = task_spawnl(NULL, NULL, fname, fname, "-c", dump_fname, "-t", s_taskid,
     85                rc = task_spawnl(NULL, fname, fname, "-c", dump_fname, "-t", s_taskid,
    8586                    NULL);
    8687        } else {
    8788                printf(NAME ": Executing %s -t %s\n", fname, s_taskid);
    88                 rc = task_spawnl(NULL, NULL, fname, fname, "-t", s_taskid, NULL);
     89                rc = task_spawnl(NULL, fname, fname, "-t", s_taskid, NULL);
    8990        }
    9091
     
    142143        write_core_files = false;
    143144#endif
    144         if (async_event_subscribe(EVENT_FAULT, fault_event, NULL) != EOK) {
     145        if (event_subscribe(EVENT_FAULT, 0) != EOK) {
    145146                printf("%s: Error registering fault notifications.\n", NAME);
    146147                return -1;
     
    164165        }
    165166       
     167        async_set_interrupt_received(fault_event);
    166168        task_retval(0);
    167169        async_manager();
Note: See TracChangeset for help on using the changeset viewer.