* linux-low.c (linux_wait): Unblock async I/O.
[deliverable/binutils-gdb.git] / gdb / gdbserver / linux-low.c
index 90efd01ebeb78c897b5ad6f0878393fa4a8a5daa..ea155160e366ab7a5e4e33730f35a4988c227016 100644 (file)
@@ -662,6 +662,7 @@ retry:
     }
 
   enable_async_io ();
+  unblock_async_io ();
   w = linux_wait_for_event (child);
   stop_all_processes ();
   disable_async_io ();
@@ -1017,7 +1018,11 @@ linux_resume (struct thread_resume *resume_info)
   if (pending_flag)
     for_each_inferior (&all_threads, linux_queue_one_thread);
   else
-    for_each_inferior (&all_threads, linux_continue_one_thread);
+    {
+      block_async_io ();
+      enable_async_io ();
+      for_each_inferior (&all_threads, linux_continue_one_thread);
+    }
 }
 
 #ifdef HAVE_LINUX_USRREGS
This page took 0.023415 seconds and 4 git commands to generate.