aboutsummaryrefslogtreecommitdiffstats
path: root/src/sysdep.c
diff options
context:
space:
mode:
authorEli Zaretskii2012-11-17 20:00:16 +0200
committerEli Zaretskii2012-11-17 20:00:16 +0200
commitcf2d22b874ca2df0072e32ee641e8efffe4abd6d (patch)
tree1795142ec7861fc85c61adc90f03265b69041556 /src/sysdep.c
parent3c4ca7155293ffc2d04708007131bcbc882d8913 (diff)
parent6ad30855c02908fdd99d9b11943719e185e65ee3 (diff)
downloademacs-cf2d22b874ca2df0072e32ee641e8efffe4abd6d.tar.gz
emacs-cf2d22b874ca2df0072e32ee641e8efffe4abd6d.zip
Merge from trunk.
Diffstat (limited to 'src/sysdep.c')
-rw-r--r--src/sysdep.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/src/sysdep.c b/src/sysdep.c
index aa9d0f38c3c..06dc41b511e 100644
--- a/src/sysdep.c
+++ b/src/sysdep.c
@@ -289,10 +289,6 @@ wait_for_termination_1 (pid_t pid, int interruptible)
289{ 289{
290 while (1) 290 while (1)
291 { 291 {
292#ifdef WINDOWSNT
293 wait (0);
294 break;
295#else /* not WINDOWSNT */
296 int status; 292 int status;
297 int wait_result = waitpid (pid, &status, 0); 293 int wait_result = waitpid (pid, &status, 0);
298 if (wait_result < 0) 294 if (wait_result < 0)
@@ -306,7 +302,8 @@ wait_for_termination_1 (pid_t pid, int interruptible)
306 break; 302 break;
307 } 303 }
308 304
309#endif /* not WINDOWSNT */ 305 /* Note: the MS-Windows emulation of waitpid calls QUIT
306 internally. */
310 if (interruptible) 307 if (interruptible)
311 QUIT; 308 QUIT;
312 } 309 }
@@ -1287,7 +1284,7 @@ reset_sys_modes (struct tty_display_info *tty_out)
1287 old_fcntl_owner[fileno (tty_out->input)]); 1284 old_fcntl_owner[fileno (tty_out->input)]);
1288 } 1285 }
1289#endif /* F_SETOWN */ 1286#endif /* F_SETOWN */
1290#ifdef O_NDELAY 1287#if O_NDELAY
1291 fcntl (fileno (tty_out->input), F_SETFL, 1288 fcntl (fileno (tty_out->input), F_SETFL,
1292 fcntl (fileno (tty_out->input), F_GETFL, 0) & ~O_NDELAY); 1289 fcntl (fileno (tty_out->input), F_GETFL, 0) & ~O_NDELAY);
1293#endif 1290#endif
@@ -2384,12 +2381,12 @@ serial_open (char *port)
2384 2381
2385 fd = emacs_open ((char*) port, 2382 fd = emacs_open ((char*) port,
2386 O_RDWR 2383 O_RDWR
2387#ifdef O_NONBLOCK 2384#if O_NONBLOCK
2388 | O_NONBLOCK 2385 | O_NONBLOCK
2389#else 2386#else
2390 | O_NDELAY 2387 | O_NDELAY
2391#endif 2388#endif
2392#ifdef O_NOCTTY 2389#if O_NOCTTY
2393 | O_NOCTTY 2390 | O_NOCTTY
2394#endif 2391#endif
2395 , 0); 2392 , 0);