Skip to content

Commit 91d699c

Browse files
committed
Disable EINTR loop on Windows
1 parent 35e6fd4 commit 91d699c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

gdbsupport/eintr.h

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -61,12 +61,16 @@ handle_eintr (ErrorValType errval, const Fun &f, const Args &... args)
6161
{
6262
decltype (f (args...)) ret;
6363

64+
#ifndef _WIN32
6465
do
66+
#endif
6567
{
6668
errno = 0;
6769
ret = f (args...);
6870
}
71+
#ifndef _WIN32
6972
while (ret == errval && errno == EINTR);
73+
#endif
7074

7175
return ret;
7276
}

0 commit comments

Comments
 (0)