]> git.eshelyaron.com Git - emacs.git/commitdiff
(child_setup): Test SETPGRP_RELEASES_CTTY, not IRIX.
authorRichard M. Stallman <rms@gnu.org>
Thu, 25 Nov 1993 21:33:31 +0000 (21:33 +0000)
committerRichard M. Stallman <rms@gnu.org>
Thu, 25 Nov 1993 21:33:31 +0000 (21:33 +0000)
(init_callproc): Fix previous change.

src/callproc.c

index bd60d942552b2c66caf0afd74e6f2fce981f3809..8d43ffe67f3dd1d07e893155b0111c5555472dcb 100644 (file)
@@ -524,13 +524,13 @@ child_setup (in, out, err, new_argv, set_pgrp, current_dir)
   close (out);
   close (err);
 
-#if !defined (IRIX)
-#if defined (USG)
+#ifdef USG
+#ifndef SETPGRP_RELEASES_CTTY
   setpgrp ();                  /* No arguments but equivalent in this case */
+#endif
 #else
   setpgrp (pid, pid);
 #endif /* USG */
-#endif /* IRIX */
   setpgrp_of_tty (pid);
 
 #ifdef vipc
@@ -686,8 +686,8 @@ init_callproc ()
                                       Vinvocation_directory);
              tem2 = Fexpand_file_name (Vdoc_file_name, tem);
              tem3 = Ffile_exists_p (tem2);
-             if (!NILP (tem2))
-               Vdata_directory = tem;
+             if (!NILP (tem3))
+               Vdata_directory = Ffile_name_as_directory (tem);
            }
        }
     }