Navigation


Changeset 686:f83d9878bf66 in freeDiameter for libfdcore/server.c


Ignore:
Timestamp:
Jan 19, 2011, 2:35:14 PM (13 years ago)
Author:
Sebastien Decugis <sdecugis@nict.go.jp>
Branch:
default
Phase:
public
Message:

Fixed in case of termination of several modules (before initialization completed)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • libfdcore/server.c

    r662 r686  
    3636#include "fdcore-internal.h"
    3737
    38 /* Server (listening) part of the daemon */
    39 
    40 struct fd_list          FD_SERVERS = FD_LIST_INITIALIZER(FD_SERVERS);   /* The list of all server objects */
    41 /* We don't need to protect this list, it is only accessed from the main daemon thread. */
     38/* Server (listening) part of the framework */
     39
     40static struct fd_list   FD_SERVERS = FD_LIST_INITIALIZER(FD_SERVERS);   /* The list of all server objects */
     41/* We don't need to protect this list, it is only accessed from the main framework thread. */
    4242
    4343/* Servers information */
     
    8383                                                          "Thread status unknown")));
    8484                /* Dump the client list of this server */
    85                 (void) pthread_mutex_lock(&s->clients_mtx);
     85                CHECK_POSIX_DO( pthread_mutex_lock(&s->clients_mtx), );
    8686                for (cli = s->clients.next; cli != &s->clients; cli = cli->next) {
    8787                        struct client * c = (struct client *)cli;
     
    9191                                        fd_log_time(&c->ts, bufts, sizeof(bufts)));
    9292                }
    93                 (void) pthread_mutex_unlock(&s->clients_mtx);
     93                CHECK_POSIX_DO( pthread_mutex_unlock(&s->clients_mtx), );
    9494        }
    9595}
Note: See TracChangeset for help on using the changeset viewer.