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)
clearerr (stdin);
#ifdef BSD
{
inherited_pgroup = EMACS_GETPGRP (0);
setpgrp (0, getpid ());
}
if (initialized)
{
inherited_pgroup = EMACS_GETPGRP (0);
setpgrp (0, getpid ());
}
#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