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

(main): Don't call setpgrp if !initialized.

parent bd4c2762
...@@ -341,10 +341,11 @@ main (argc, argv, envp) ...@@ -341,10 +341,11 @@ main (argc, argv, envp)
clearerr (stdin); clearerr (stdin);
#ifdef BSD #ifdef BSD
{ if (initialized)
inherited_pgroup = EMACS_GETPGRP (0); {
setpgrp (0, getpid ()); inherited_pgroup = EMACS_GETPGRP (0);
} setpgrp (0, getpid ());
}
#endif #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