aboutsummaryrefslogtreecommitdiffstats
path: root/src/callproc.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/callproc.c')
-rw-r--r--src/callproc.c14
1 files changed, 1 insertions, 13 deletions
diff --git a/src/callproc.c b/src/callproc.c
index a2cfd2e94da..9f47c79b81a 100644
--- a/src/callproc.c
+++ b/src/callproc.c
@@ -643,19 +643,7 @@ call_process (ptrdiff_t nargs, Lisp_Object *args, int filefd,
643#endif 643#endif
644 644
645 unblock_child_signal (&oldset); 645 unblock_child_signal (&oldset);
646 646 dissociate_controlling_tty ();
647#ifdef DARWIN_OS
648 /* Darwin doesn't let us run setsid after a vfork, so use
649 TIOCNOTTY when necessary. */
650 int j = emacs_open (DEV_TTY, O_RDWR, 0);
651 if (j >= 0)
652 {
653 ioctl (j, TIOCNOTTY, 0);
654 emacs_close (j);
655 }
656#else
657 setsid ();
658#endif
659 647
660 /* Emacs ignores SIGPIPE, but the child should not. */ 648 /* Emacs ignores SIGPIPE, but the child should not. */
661 signal (SIGPIPE, SIG_DFL); 649 signal (SIGPIPE, SIG_DFL);