[PATCH 1/1] Cygwin: fpathconf: update _PC_ASYNC_IO return value

Yaakov Selkowitz yselkowi@redhat.com
Wed Jul 25 20:06:00 GMT 2018


Signed-off-by: Yaakov Selkowitz <yselkowi@redhat.com>
---
 winsup/cygwin/fhandler.cc | 1 +
 1 file changed, 1 insertion(+)

diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index ded12cc44..22dbdb05d 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -1875,6 +1875,7 @@ fhandler_base::fpathconf (int v)
       set_errno (EINVAL);
       break;
     case _PC_ASYNC_IO:
+      return 1;
     case _PC_PRIO_IO:
       break;
     case _PC_SYNC_IO:
-- 
2.17.1



More information about the Cygwin-patches mailing list