/* -*-C-*-
-$Id: ux.h,v 1.79 2006/09/16 11:19:09 gjr Exp $
+$Id: ux.h,v 1.80 2006/10/29 17:25:15 riastradh Exp $
Copyright 1990,1991,1992,1993,1994,1995 Massachusetts Institute of Technology
Copyright 1996,1997,1998,1999,2000,2003 Massachusetts Institute of Technology
extern int EXFUN (UX_tcsetpgrp, (int, pid_t));
# define EMULATE_TCSETPGRP
#endif
+
+/* In Darwin, setsid doesn't work in vforked processes,
+ so force the use of fork instead. */
+#ifdef __APPLE__
+# undef UX_vfork
+# define UX_vfork fork
+#endif
\f
#ifdef HAVE_SIGACTION
/* -*-C-*-
-$Id: uxproc.c,v 1.30 2006/09/16 11:19:09 gjr Exp $
+$Id: uxproc.c,v 1.31 2006/10/29 17:25:15 riastradh Exp $
Copyright (c) 1990-2001, 2006 Massachusetts Institute of Technology
{
/* If the control terminal is not inherited, force the child
into a different session. */
-#ifdef __APPLE__
- UX_setsid ();
-#else
if ((UX_setsid ()) < 0)
goto kill_child;
-#endif
/* If the control terminal is explicit, open the given device
now so it becomes the control terminal. */
if (ctty_type == process_ctty_type_explicit)