]> git.eshelyaron.com Git - emacs.git/commit
Fix subproc listening when setting filter to non-t (Bug#36591)
authorNoam Postavsky <npostavs@gmail.com>
Thu, 25 Jul 2019 00:33:18 +0000 (20:33 -0400)
committerNoam Postavsky <npostavs@gmail.com>
Thu, 25 Jul 2019 22:36:03 +0000 (18:36 -0400)
commitb3e20737d83acbbbec372645e2a951293d84bd29
tree4db4e10154ddaf0e736275485f5ca9c5b5dfa1bd
parentf67195028467e26348cab3a6cdc97034cd93f897
Fix subproc listening when setting filter to non-t (Bug#36591)

* src/process.c (Fset_process_filter): Call add_process_read_fd
according to the state of process filter before it's updated.  This
restores the correct functioning as it was before 2016-02-16 "Allow
setting the filter masks later".  Inline the set_process_filter_masks
call instead of fixing it that function, because it is also called
from connect_network_socket, and we don't want to change the behavior
of that function so close to release.
* test/src/process-tests.el (set-process-filter-t): New test.
src/process.c
test/src/process-tests.el