Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/loader/main.c

    r3e6a98c5 r6afc9d7  
    249249                }
    250250                async_state_change_finalize(callid, vfs_exch);
    251                 fd = fd_wait();
     251                fd = vfs_fd_wait();
    252252                assert(fd == (int) filc);
    253253        }
     
    443443int main(int argc, char *argv[])
    444444{
    445         /* Set a handler of incomming connections. */
    446         async_set_client_connection(ldr_connection);
     445        async_set_fallback_port_handler(ldr_connection, NULL);
    447446       
    448447        /* Introduce this task to the NS (give it our task ID). */
     
    452451                return rc;
    453452       
    454         /* Register at naming service. */
    455         rc = service_register(SERVICE_LOAD);
     453        /* Create port */
     454        port_id_t port;
     455        rc = async_create_port(INTERFACE_LOADER, ldr_connection, NULL, &port);
    456456        if (rc != EOK)
    457457                return rc;
    458458       
     459        /* Register at naming service. */
     460        rc = service_register(SERVICE_LOADER);
     461        if (rc != EOK)
     462                return rc;
     463       
    459464        async_manager();
    460465       
Note: See TracChangeset for help on using the changeset viewer.