diff options
Diffstat (limited to 'src/mds-registry')
-rw-r--r-- | src/mds-registry/mds-registry.c | 6 | ||||
-rw-r--r-- | src/mds-registry/reexec.c | 2 | ||||
-rw-r--r-- | src/mds-registry/registry.c | 6 | ||||
-rw-r--r-- | src/mds-registry/slave.c | 8 | ||||
-rw-r--r-- | src/mds-registry/util.c | 2 |
5 files changed, 12 insertions, 12 deletions
diff --git a/src/mds-registry/mds-registry.c b/src/mds-registry/mds-registry.c index aa759c8..58463af 100644 --- a/src/mds-registry/mds-registry.c +++ b/src/mds-registry/mds-registry.c @@ -65,7 +65,7 @@ int preinitialise_server(void) return 0; pfail: - perror(*argv); + xperror(*argv); if (stage >= 1) pthread_mutex_destroy(&slave_mutex); if (stage >= 2) pthread_cond_destroy(&slave_cond); return 1; @@ -105,7 +105,7 @@ int initialise_server(void) return 1; if (hash_table_create_tuned(®_table, 32)) { - perror(*argv); + xperror(*argv); hash_table_destroy(®_table, NULL, NULL); return 1; } @@ -176,7 +176,7 @@ int master_loop(void) rc = 0; goto fail; pfail: - perror(*argv); + xperror(*argv); fail: /* Join with all slaves threads. */ with_mutex (slave_mutex, diff --git a/src/mds-registry/reexec.c b/src/mds-registry/reexec.c index dafbff1..9bee27b 100644 --- a/src/mds-registry/reexec.c +++ b/src/mds-registry/reexec.c @@ -151,7 +151,7 @@ int unmarshal_server(char* state_buf) return 0; pfail: - perror(*argv); + xperror(*argv); mds_message_destroy(&received); if (stage >= 1) hash_table_destroy(®_table, (free_func*)reg_table_free_key, (free_func*)reg_table_free_value); diff --git a/src/mds-registry/registry.c b/src/mds-registry/registry.c index 8c0132e..b05d1a1 100644 --- a/src/mds-registry/registry.c +++ b/src/mds-registry/registry.c @@ -108,7 +108,7 @@ static int handle_close_message(void) free(keys); return 0; pfail: - perror(*argv); + xperror(*argv); fail: free(keys); return -1; @@ -167,7 +167,7 @@ static int registry_action_add(int has_key, char* command, size_t command_key, u return 0; pfail: - perror(*argv); + xperror(*argv); return -1; } @@ -239,7 +239,7 @@ static int registry_action_act(char* command, int action, uint64_t client, hash_ return 0; pfail_wait: - perror(*argv); + xperror(*argv); hash_table_destroy(wait_set, (free_func*)reg_table_free_key, NULL); free(wait_set); return -1; diff --git a/src/mds-registry/slave.c b/src/mds-registry/slave.c index 9bc2fd1..6afc69f 100644 --- a/src/mds-registry/slave.c +++ b/src/mds-registry/slave.c @@ -63,7 +63,7 @@ static void* slave_loop(void* data) goto done; pfail: - perror(*argv); + xperror(*argv); done: with_mutex (slave_mutex, if (!reexecing) @@ -102,17 +102,17 @@ int start_slave(hash_table_t* restrict wait_set, const char* restrict recv_clien goto pfail_in_mutex; if ((errno = pthread_detach(slave->thread))) - perror(*argv); + xperror(*argv); running_slaves++; pthread_mutex_unlock(&slave_mutex); return 0; pfail: - perror(*argv); + xperror(*argv); goto more_fail; pfail_in_mutex: - perror(*argv); + xperror(*argv); pthread_mutex_unlock(&slave_mutex); more_fail: if (node != LINKED_LIST_UNUSED) diff --git a/src/mds-registry/util.c b/src/mds-registry/util.c index 31df0e1..733aa07 100644 --- a/src/mds-registry/util.c +++ b/src/mds-registry/util.c @@ -102,7 +102,7 @@ int full_send(const char* message, size_t length) } else if ((sent < length) && (errno != EINTR)) { - perror(*argv); + xperror(*argv); return -1; } message += sent; |