From f45ddcf8136fabc8a14c66250e3be540661b3634 Mon Sep 17 00:00:00 2001 From: Mattias Andrée Date: Sat, 2 Aug 2014 20:20:16 +0200 Subject: misc MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: Mattias Andrée --- src/mds-respawn.c | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'src/mds-respawn.c') diff --git a/src/mds-respawn.c b/src/mds-respawn.c index 6da3500..24084f0 100644 --- a/src/mds-respawn.c +++ b/src/mds-respawn.c @@ -156,7 +156,7 @@ int parse_cmdline(void) return 0; pfail: - perror(*argv); + xperror(*argv); return 1; } @@ -175,7 +175,7 @@ static void spawn_server(size_t index) if (monotone(&started) < 0) { - perror(*argv); + xperror(*argv); eprintf("cannot read clock when starting %s, burying.", commands[index][0]); states[index].state = DEAD_AND_BURIED; return; @@ -188,7 +188,7 @@ static void spawn_server(size_t index) pid = fork(); if (pid == (pid_t)-1) { - perror(*argv); + xperror(*argv); eprintf("cannot fork in order to start %s, burying.", commands[index][0]); states[index].state = DEAD_AND_BURIED; return; @@ -208,7 +208,7 @@ static void spawn_server(size_t index) /* In the child process (server): change execution image to the server.. */ execvp(commands[index][0], commands[index]); - perror(commands[index][0]); + xperror(commands[index][0]); _exit(1); } @@ -241,7 +241,7 @@ int preinitialise_server(void) return 0; pfail: - perror(*argv); + xperror(*argv); return 1; } @@ -301,7 +301,7 @@ int postinitialise_server(void) return 0; pfail: - perror(*argv); + xperror(*argv); return 1; } @@ -476,7 +476,7 @@ static void joined_with_server(pid_t pid, int status) /* When did the server exit. */ if (monotone(&ended) < 0) { - perror(*argv); + xperror(*argv); eprintf("`%s' died abnormally, burying because we could not read the time.", commands[i][0]); states[i].state = DEAD_AND_BURIED; return; @@ -519,7 +519,7 @@ int master_loop(void) { if (errno == EINTR) continue; - perror(*argv); + xperror(*argv); rc = 1; break; } -- cgit v1.2.3-70-g09d2