Changeset 686:f83d9878bf66 in freeDiameter for libfdcore/server.c
- Timestamp:
- Jan 19, 2011, 2:35:14 PM (13 years ago)
- Branch:
- default
- Phase:
- public
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
libfdcore/server.c
r662 r686 36 36 #include "fdcore-internal.h" 37 37 38 /* Server (listening) part of the daemon*/39 40 st ruct fd_listFD_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 daemonthread. */38 /* Server (listening) part of the framework */ 39 40 static 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. */ 42 42 43 43 /* Servers information */ … … 83 83 "Thread status unknown"))); 84 84 /* 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), ); 86 86 for (cli = s->clients.next; cli != &s->clients; cli = cli->next) { 87 87 struct client * c = (struct client *)cli; … … 91 91 fd_log_time(&c->ts, bufts, sizeof(bufts))); 92 92 } 93 (void) pthread_mutex_unlock(&s->clients_mtx);93 CHECK_POSIX_DO( pthread_mutex_unlock(&s->clients_mtx), ); 94 94 } 95 95 }
Note: See TracChangeset
for help on using the changeset viewer.