aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
authorEli Zaretskii2012-11-13 16:17:18 +0200
committerEli Zaretskii2012-11-13 16:17:18 +0200
commit3c4ca7155293ffc2d04708007131bcbc882d8913 (patch)
tree61787be8cd43b6fb3d5159852fbd186eea404de7 /src/callproc.c
parent5ade42a5114255c43117065494b96d480c1e1588 (diff)
parentc708524567662c8911c5ab2695acc7bda0383705 (diff)
downloademacs-3c4ca7155293ffc2d04708007131bcbc882d8913.tar.gz
emacs-3c4ca7155293ffc2d04708007131bcbc882d8913.zip
Merge from trunk.
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c10
1 files changed, 1 insertions, 9 deletions
diff --git a/src/callproc.c b/src/callproc.c
index c236f22fc86..c7bbe36e605 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -612,11 +612,7 @@ usage: (call-process PROGRAM &optional INFILE BUFFER DISPLAY &rest ARGS) */)
612 if (fd[0] >= 0) 612 if (fd[0] >= 0)
613 emacs_close (fd[0]); 613 emacs_close (fd[0]);
614 614
615#ifdef HAVE_SETSID
616 setsid (); 615 setsid ();
617#else
618 setpgid (0, 0);
619#endif
620 616
621 /* Emacs ignores SIGPIPE, but the child should not. */ 617 /* Emacs ignores SIGPIPE, but the child should not. */
622 signal (SIGPIPE, SIG_DFL); 618 signal (SIGPIPE, SIG_DFL);
@@ -1286,11 +1282,7 @@ child_setup (int in, int out, int err, char **new_argv, bool set_pgrp,
1286 if (err != in && err != out) 1282 if (err != in && err != out)
1287 emacs_close (err); 1283 emacs_close (err);
1288 1284
1289#if defined HAVE_SETPGID || ! (defined USG && defined SETPGRP_RELEASES_CTTY) 1285 setpgid (0, 0);
1290 setpgid (pid, pid);
1291#endif
1292
1293 /* setpgrp_of_tty is incorrect here; it uses input_fd. */
1294 tcsetpgrp (0, pid); 1286 tcsetpgrp (0, pid);
1295 1287
1296 /* execvp does not accept an environment arg so the only way 1288 /* execvp does not accept an environment arg so the only way