diff options
author | Mattias Andrée <maandree@operamail.com> | 2014-08-02 20:20:16 +0200 |
---|---|---|
committer | Mattias Andrée <maandree@operamail.com> | 2014-08-02 20:20:16 +0200 |
commit | f45ddcf8136fabc8a14c66250e3be540661b3634 (patch) | |
tree | 5701cb54f6b5f463575d4601a3560ec0fd305d83 /src/mds-base.c | |
parent | misc (diff) | |
download | mds-f45ddcf8136fabc8a14c66250e3be540661b3634.tar.gz mds-f45ddcf8136fabc8a14c66250e3be540661b3634.tar.bz2 mds-f45ddcf8136fabc8a14c66250e3be540661b3634.tar.xz |
misc
Signed-off-by: Mattias Andrée <maandree@operamail.com>
Diffstat (limited to '')
-rw-r--r-- | src/mds-base.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/mds-base.c b/src/mds-base.c index 04ae25b..77b8835 100644 --- a/src/mds-base.c +++ b/src/mds-base.c @@ -176,7 +176,7 @@ int __attribute__((weak)) connect_to_display(void) return 0; pfail: - perror(*argv); + xperror(*argv); if (socket_fd >= 0) close(socket_fd); return 1; @@ -194,7 +194,7 @@ void __attribute__((weak)) server_initialised(void) { if (r == (pid_t)-1) { - perror(*argv); + xperror(*argv); eprint("while forking at completed initialisation."); exit(1); } @@ -302,7 +302,7 @@ static int base_unmarshal(void) return 0; pfail: - perror(*argv); + xperror(*argv); return 1; } @@ -345,7 +345,7 @@ static int base_marshal(int reexec_fd) return 0; pfail: - perror(*argv); + xperror(*argv); free(state_buf); return 1; } @@ -368,7 +368,7 @@ static void perform_reexec(void) reexec_fd = shm_open(shm_path, O_RDWR | O_CREAT | O_EXCL, S_IRWXU); if (reexec_fd < 0) { - perror(*argv); + xperror(*argv); return; } if (base_marshal(reexec_fd) < 0) @@ -378,7 +378,7 @@ static void perform_reexec(void) /* Re-exec the server. */ reexec_server(argc, argv, is_reexec); - perror(*argv); + xperror(*argv); fail: if (reexec_fd >= 0) @@ -460,7 +460,7 @@ int main(int argc_, char** argv_) pfail: - perror(*argv); + xperror(*argv); r = 1; fail: if (socket_fd >= 0) @@ -490,7 +490,7 @@ int trap_signals(void) return 0; pfail: - perror(*argv); + xperror(*argv); return 1; } |