Skip to content

Commit

Permalink
Address #2575 (comment)
Browse files Browse the repository at this point in the history
  • Loading branch information
CarloWood committed Feb 14, 2025
1 parent d5cefb7 commit c0d30e3
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/core/core.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -437,7 +437,7 @@ pid_t wf::compositor_core_impl_t::run(std::string command)
int ret = pipe2(pipe_fd, O_CLOEXEC);
if (ret == -1)
{
LOGE("pipe2: ", strerror(errno));
LOGE("wf::compositor_core_impl_t::run: failed to create pipe2: ", strerror(errno));
return 0;
}

Expand Down Expand Up @@ -497,10 +497,12 @@ pid_t wf::compositor_core_impl_t::run(std::string command)
child_pid = 0;
if (ret == -1)
{
LOGE("read: ", strerror(errno));
LOGE("wf::compositor_core_impl_t::run(\"", command,
"\"): failed to read PID from pipe end: ", strerror(errno));
} else
{
LOGE("short read of PID from pipe");
LOGE("wf::compositor_core_impl_t::run(\"", command,
"\"): short read of PID from pipe end, got ", std::to_string(ret), " bytes");
}
}
}
Expand Down

0 comments on commit c0d30e3

Please sign in to comment.