aboutsummaryrefslogtreecommitdiffstats
path: root/src/w32proc.c
diff options
context:
space:
mode:
authorEli Zaretskii2016-12-07 21:01:40 +0200
committerEli Zaretskii2016-12-07 21:01:40 +0200
commitfa7d1f075fb862ae4ca28390abf33d625dbd2813 (patch)
tree68c81214177fc82c3834216cb309d334e7253224 /src/w32proc.c
parent16ac7c0fc91b5eb09f2a129fc2c01281369f897a (diff)
downloademacs-fa7d1f075fb862ae4ca28390abf33d625dbd2813.tar.gz
emacs-fa7d1f075fb862ae4ca28390abf33d625dbd2813.zip
Fix network streams.
The original code messed up flags in fd_callback_data[], and also didn't call add_process_read_fd for process-related file descriptors.
Diffstat (limited to 'src/w32proc.c')
-rw-r--r--src/w32proc.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/w32proc.c b/src/w32proc.c
index c9bc28510f7..3ff52c37fbd 100644
--- a/src/w32proc.c
+++ b/src/w32proc.c
@@ -72,7 +72,7 @@ extern BOOL g_b_init_compare_string_w;
72extern BOOL g_b_init_debug_break_process; 72extern BOOL g_b_init_debug_break_process;
73 73
74int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *, 74int sys_select (int, SELECT_TYPE *, SELECT_TYPE *, SELECT_TYPE *,
75 struct timespec *, void *); 75 struct timespec *, sigset_t *);
76 76
77/* Signal handlers...SIG_DFL == 0 so this is initialized correctly. */ 77/* Signal handlers...SIG_DFL == 0 so this is initialized correctly. */
78static signal_handler sig_handlers[NSIG]; 78static signal_handler sig_handlers[NSIG];
@@ -2096,7 +2096,7 @@ extern int proc_buffered_char[];
2096 2096
2097int 2097int
2098sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds, 2098sys_select (int nfds, SELECT_TYPE *rfds, SELECT_TYPE *wfds, SELECT_TYPE *efds,
2099 struct timespec *timeout, void *ignored) 2099 struct timespec *timeout, sigset_t *ignored)
2100{ 2100{
2101 SELECT_TYPE orfds, owfds; 2101 SELECT_TYPE orfds, owfds;
2102 DWORD timeout_ms, start_time; 2102 DWORD timeout_ms, start_time;