aboutsummaryrefslogtreecommitdiffstats
path: root/src/process.c
diff options
context:
space:
mode:
authorRichard M. Stallman1996-01-29 04:52:15 +0000
committerRichard M. Stallman1996-01-29 04:52:15 +0000
commit038328930df6c0bf12eea61e5ab6ed57b6e94b40 (patch)
treef5bb215049da14b08d86d7665d05ad1996e387d2 /src/process.c
parentfb4c362712689ad37854943f8fd2ae9e954ced31 (diff)
downloademacs-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.c5
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
4This file is part of GNU Emacs. 5This 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