Changeset 48171fc4 in mainline for uspace/srv/net/dnsrsrv/dnsrsrv.c


Ignore:
Timestamp:
2013-05-03T08:10:02Z (12 years ago)
Author:
Jiri Svoboda <jiri@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0d97f83
Parents:
fff7ef4
Message:

Single fibril for receiving responses. Request timeout.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/net/dnsrsrv/dnsrsrv.c

    rfff7ef4 r48171fc4  
    4747#include "dns_std.h"
    4848#include "query.h"
     49#include "transport.h"
    4950
    5051#define NAME  "dnsres"
     
    5455static int dnsr_init(void)
    5556{
     57        int rc;
    5658        log_msg(LOG_DEFAULT, LVL_DEBUG, "dnsr_init()");
    5759
     60        rc = transport_init();
     61        if (rc != EOK) {
     62                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed initializing tarnsport.");
     63                return EIO;
     64        }
     65
    5866        async_set_client_connection(dnsr_client_conn);
    5967
    60         int rc = loc_server_register(NAME);
     68        rc = loc_server_register(NAME);
    6169        if (rc != EOK) {
    6270                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering server (%d).", rc);
     71                transport_fini();
    6372                return EEXIST;
    6473        }
     
    6877        if (rc != EOK) {
    6978                log_msg(LOG_DEFAULT, LVL_ERROR, "Failed registering service (%d).", rc);
     79                transport_fini();
    7080                return EEXIST;
    7181        }
Note: See TracChangeset for help on using the changeset viewer.