From a310e779ee60e4054794f09a32131f0142535624 Mon Sep 17 00:00:00 2001 From: midipix Date: Sun, 15 Sep 2019 02:42:18 +0000 Subject: mgdb: winnt_prepare(): __dbg_event_acquire() now supports blocking calls. --- overlay/mgdb/gdb/winnt-nat.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/overlay/mgdb/gdb/winnt-nat.c b/overlay/mgdb/gdb/winnt-nat.c index 15e8131..e326578 100644 --- a/overlay/mgdb/gdb/winnt-nat.c +++ b/overlay/mgdb/gdb/winnt-nat.c @@ -551,7 +551,7 @@ static void winnt_prepare (struct target_ops * t, pid_t pid, int pfd, int attach while (1) { do { ret = __dbg_event_acquire(pfd,event); - } while ((ret < 0) && (errno == EAGAIN)); + } while ((ret < 0) && (errno == EINTR)); if (ret < 0) winnt_perror("failed to acquire preliminary debug event",pid); -- cgit v1.2.3