mirror of
git://git.sv.gnu.org/emacs.git
synced 2025-12-27 07:41:28 -08:00
Mark both ends of self-pipe a nonblocking.
While no deadlocks caused by the blocking write end have been reported yet, marking both ends nonblocking is consistent and also recommended in the GNU/Linux manpage of 'select'. * src/process.c (child_signal_init): Mark write end of self-pipe as nonblocking.
This commit is contained in:
parent
6a6fde0375
commit
aeff424c55
1 changed files with 2 additions and 0 deletions
|
|
@ -7195,6 +7195,8 @@ child_signal_init (void)
|
|||
eassert (0 <= fds[1]);
|
||||
if (fcntl (fds[0], F_SETFL, O_NONBLOCK) != 0)
|
||||
emacs_perror ("fcntl");
|
||||
if (fcntl (fds[1], F_SETFL, O_NONBLOCK) != 0)
|
||||
emacs_perror ("fcntl");
|
||||
add_read_fd (fds[0], child_signal_read, NULL);
|
||||
fd_callback_info[fds[0]].flags &= ~KEYBOARD_FD;
|
||||
child_signal_read_fd = fds[0];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue