mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-06 03:40:56 -08:00
Remove callback-handled channels from Available set
* src/process.c (wait_reading_process_output): Remove channel from Available set if it is handled by a callback, e.g., dbus or inotify (bug#21313).
This commit is contained in:
parent
084b8af8e0
commit
27f871907c
1 changed files with 4 additions and 1 deletions
|
|
@ -5036,7 +5036,10 @@ wait_reading_process_output (intmax_t time_limit, int nsecs, int read_kbd,
|
|||
&& FD_ISSET (channel, &Available))
|
||||
|| (d->condition & FOR_WRITE
|
||||
&& FD_ISSET (channel, &write_mask))))
|
||||
d->func (channel, d->data);
|
||||
{
|
||||
d->func (channel, d->data);
|
||||
FD_CLR (channel, &Available);
|
||||
}
|
||||
}
|
||||
|
||||
for (channel = 0; channel <= max_process_desc; channel++)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue