* linux-low.c (linux_wait): Unblock async I/O.
(linux_resume): Block and enable async I/O. * remote-utils.c (block_async_io, unblock_async_io): New functions. * server.h (block_async_io, unblock_async_io): Add prototypes.
This commit is contained in:
parent
6910d122ac
commit
62ea82f508
4 changed files with 33 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue