mirror of
https://github.com/clearlinux/graphene.git
synced 2026-09-06 05:41:37 +00:00
[Pal/Linux] db_pipes.c: Remove redundant code in pipe_attrquerybyhdl()
This commit is contained in:
@@ -357,10 +357,6 @@ static int pipe_attrquerybyhdl(PAL_HANDLE handle, PAL_STREAM_ATTR* attr) {
|
||||
attr->writable = HANDLE_HDR(handle)->flags &
|
||||
(IS_HANDLE_TYPE(handle, pipeprv) ? WRITABLE(1) : WRITABLE(0));
|
||||
} else {
|
||||
struct pollfd pfd = {.fd = handle->generic.fds[0], .events = POLLIN, .revents = 0};
|
||||
struct timespec tp = {0, 0};
|
||||
ret = INLINE_SYSCALL(ppoll, 5, &pfd, 1, &tp, NULL, 0);
|
||||
attr->readable = (ret == 1 && pfd.revents == POLLIN);
|
||||
attr->pending_size = 0;
|
||||
attr->writable = PAL_FALSE;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user