Commit ea2e9643 authored by Jerome Flesch's avatar Jerome Flesch Committed by Jerome Flesch

dedicated_process: trying to write logs when trying to logs has failed is a bit pointless ...

The call to lis_log_write() remained stuck due to the mutex.
Signed-off-by: Jerome Flesch's avatarJerome Flesch <jflesch@kwain.net>
parent 9e7f1d4b
Pipeline #240119 passed with stages
in 40 minutes and 57 seconds
......@@ -140,7 +140,8 @@ enum lis_error lis_protocol_log_write(struct lis_pipes *pipes, enum lis_log_leve
r = write(pipes->sorted.logs[1], &lvl, sizeof(lvl));
if (r != sizeof(lvl)) {
lis_log_error(
fprintf(
stderr,
"write() failed: r=%zd ; %d, %s",
r, errno, strerror(errno)
);
......@@ -149,7 +150,8 @@ enum lis_error lis_protocol_log_write(struct lis_pipes *pipes, enum lis_log_leve
r = write(pipes->sorted.logs[1], &len, sizeof(len));
if (r != sizeof(len)) {
lis_log_error(
fprintf(
stderr,
"write() failed (2): r=%zd ; %d, %s",
r, errno, strerror(errno)
);
......@@ -158,7 +160,8 @@ enum lis_error lis_protocol_log_write(struct lis_pipes *pipes, enum lis_log_leve
r = write(pipes->sorted.logs[1], msg, len);
if (r != (ssize_t)len) {
lis_log_error(
fprintf(
stderr,
"write() failed (3): r=%zd ; %d, %s",
r, errno, strerror(errno)
);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment