Commit edb85f59 authored by Richard M. Stallman's avatar Richard M. Stallman

(main): Do the setpgrp after checking for -batch.

parent 054c8675
......@@ -409,21 +409,6 @@ main (argc, argv, envp)
clearerr (stdin);
if (! noninteractive1)
{
#ifdef BSD_PGRPS
if (initialized)
{
inherited_pgroup = EMACS_GETPGRP (0);
setpgrp (0, getpid ());
}
#else
#if defined (USG5) && defined (INTERRUPT_INPUT)
setpgrp ();
#endif
#endif
}
#ifdef APOLLO
#ifndef APOLLO_SR10
/* If USE_DOMAIN_ACLS environment variable exists,
......@@ -507,6 +492,21 @@ main (argc, argv, envp)
noninteractive = 1;
}
if (! noninteractive)
{
#ifdef BSD_PGRPS
if (initialized)
{
inherited_pgroup = EMACS_GETPGRP (0);
setpgrp (0, getpid ());
}
#else
#if defined (USG5) && defined (INTERRUPT_INPUT)
setpgrp ();
#endif
#endif
}
#ifdef POSIX_SIGNALS
init_signals ();
#endif
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment