Merge pull request #3808 from dimhotepus/zm_fifo_error_text

Log pipe size mutate / access errors in Logs
pull/3812/head
Isaac Connor 2024-01-26 09:33:14 -05:00 committed by GitHub
commit d850031151
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -77,11 +77,11 @@ bool Fifo::open() {
#ifdef __linux__
int ret = fcntl(raw_fd, F_SETPIPE_SZ, PIPE_SIZE);
if (ret < 0) {
Error("set pipe size failed.");
Error("set pipe size to %ld failed: %s.", (long)PIPE_SIZE, strerror(errno));
}
long pipe_size = (long)fcntl(raw_fd, F_GETPIPE_SZ);
if (pipe_size == -1) {
Error("get pipe size failed.");
Error("get pipe size failed: %s.", strerror(errno));
}
Debug(1, "default pipe size: %ld\n", pipe_size);
#endif