aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorGerd Moellmann2001-09-20 10:06:35 +0000
committerGerd Moellmann2001-09-20 10:06:35 +0000
commitdb92b288420f8528cdb62a3d78052c1deb4504a8 (patch)
tree71556160e599b37a080bed15a584e8a4c4390891 /src/callproc.c
parent005e3bb6654fc8a1e0d477158741f6762b7da7fb (diff)
downloademacs-db92b288420f8528cdb62a3d78052c1deb4504a8.tar.gz
emacs-db92b288420f8528cdb62a3d78052c1deb4504a8.zip
(Fcall_process): Handle errors from pipe(2).
(child_setup): Delete code in #ifdef vipc.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/src/callproc.c b/src/callproc.c
index 9101f264cce..70a42dddb05 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -465,7 +465,12 @@ If you quit, the process is killed with SIGINT, or SIGKILL if you quit again.")
465 { 465 {
466#ifndef MSDOS 466#ifndef MSDOS
467#ifndef macintosh 467#ifndef macintosh
468 pipe (fd); 468 errno = 0;
469 if (pipe (fd) == -1)
470 {
471 emacs_close (filefd);
472 report_file_error ("Creating process pipe", Qnil);
473 }
469#endif 474#endif
470#endif 475#endif
471#if 0 476#if 0
@@ -1307,10 +1312,6 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
1307 /* setpgrp_of_tty is incorrect here; it uses input_fd. */ 1312 /* setpgrp_of_tty is incorrect here; it uses input_fd. */
1308 EMACS_SET_TTY_PGRP (0, &pid); 1313 EMACS_SET_TTY_PGRP (0, &pid);
1309 1314
1310#ifdef vipc
1311 something missing here;
1312#endif /* vipc */
1313
1314#ifdef MSDOS 1315#ifdef MSDOS
1315 pid = run_msdos_command (new_argv, pwd_var + 4, in, out, err, env); 1316 pid = run_msdos_command (new_argv, pwd_var + 4, in, out, err, env);
1316 xfree (pwd_var); 1317 xfree (pwd_var);