1
Fork 0
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:
Tassilo Horn 2015-09-22 07:43:39 +02:00
parent 084b8af8e0
commit 27f871907c

View file

@ -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++)