diff options
| author | Richard M. Stallman | 1996-01-29 04:52:15 +0000 |
|---|---|---|
| committer | Richard M. Stallman | 1996-01-29 04:52:15 +0000 |
| commit | 038328930df6c0bf12eea61e5ab6ed57b6e94b40 (patch) | |
| tree | f5bb215049da14b08d86d7665d05ad1996e387d2 /src/process.c | |
| parent | fb4c362712689ad37854943f8fd2ae9e954ced31 (diff) | |
| download | emacs-038328930df6c0bf12eea61e5ab6ed57b6e94b40.tar.gz emacs-038328930df6c0bf12eea61e5ab6ed57b6e94b40.zip | |
(create_process): Set outchannel to be non-blocking.
Diffstat (limited to 'src/process.c')
| -rw-r--r-- | src/process.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/process.c b/src/process.c index 2dd1a46c32d..59bcd8cb11d 100644 --- a/src/process.c +++ b/src/process.c | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* Asynchronous subprocess control for GNU Emacs. | 1 | /* Asynchronous subprocess control for GNU Emacs. |
| 2 | Copyright (C) 1985, 86, 87, 88, 93, 94, 95 Free Software Foundation, Inc. | 2 | Copyright (C) 1985, 86, 87, 88, 93, 94, 95, 1996 |
| 3 | Free Software Foundation, Inc. | ||
| 3 | 4 | ||
| 4 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 5 | 6 | ||
| @@ -1290,9 +1291,11 @@ create_process (process, new_argv, current_dir) | |||
| 1290 | 1291 | ||
| 1291 | #ifdef O_NONBLOCK | 1292 | #ifdef O_NONBLOCK |
| 1292 | fcntl (inchannel, F_SETFL, O_NONBLOCK); | 1293 | fcntl (inchannel, F_SETFL, O_NONBLOCK); |
| 1294 | fcntl (outchannel, F_SETFL, O_NONBLOCK); | ||
| 1293 | #else | 1295 | #else |
| 1294 | #ifdef O_NDELAY | 1296 | #ifdef O_NDELAY |
| 1295 | fcntl (inchannel, F_SETFL, O_NDELAY); | 1297 | fcntl (inchannel, F_SETFL, O_NDELAY); |
| 1298 | fcntl (outchannel, F_SETFL, O_NDELAY); | ||
| 1296 | #endif | 1299 | #endif |
| 1297 | #endif | 1300 | #endif |
| 1298 | 1301 | ||