1
0
mirror of https://github.com/pgbackrest/pgbackrest.git synced 2025-07-15 01:04:37 +02:00

Expose handle (file descriptor) from IoRead when applicable.

Some IO objects have file descriptors which can be useful for monitoring with select().

It might also be useful to expose handles for write objects but there is currently no use case.
This commit is contained in:
David Steele
2019-02-27 18:11:09 +02:00
parent b1957b07f3
commit dee90d3e60
10 changed files with 64 additions and 2 deletions

View File

@ -519,6 +519,7 @@ testRun(void)
MEM_CONTEXT_TEMP_END();
ioReadOpen(ioHandleReadIo(read));
TEST_RESULT_INT(ioReadHandle(ioHandleReadIo(read)), read->handle, "check handle");
// Read a string
TEST_RESULT_STR(strPtr(ioReadLine(ioHandleReadIo(read))), "test string 1", "read test string");