GNU bug report logs - #13387
emacsclient -t suspends emacs

Previous Next

Package: emacs;

Reported by: Dan Nicolaescu <dann <at> gnu.org>

Date: Tue, 8 Jan 2013 17:10:01 UTC

Severity: normal

Done: Dan Nicolaescu <dann <at> gnu.org>

Bug is archived. No further changes may be made.

Full log


Message #8 received at 13387 <at> debbugs.gnu.org (full text, mbox):

From: Dan Nicolaescu <dann <at> gnu.org>
To: 13387 <at> debbugs.gnu.org
Cc: Paul Eggert <eggert <at> cs.ucla.edu>
Subject: Re: bug#13387: emacsclient  -t  suspends  emacs
Date: Thu, 10 Jan 2013 02:04:25 -0500
Dan Nicolaescu <dann <at> gnu.org> writes:

> With the current trunk:
>
> emacs -Q &
> M-x server-start RET
> and  from the same terminal do:
> emacsclient -t
>
> This results in:
> [1]  + Suspended (tty output)        emacs -Q
>
> This is a regression, it works just fine in 24.1

The commit that caused this is 110801.

This hunk looks suspicious:

@@ -1286,11 +1282,7 @@ child_setup (int in, int out, int err, c
   if (err != in && err != out)
     emacs_close (err);

-#if defined HAVE_SETPGID || ! (defined USG && defined SETPGRP_RELEASES_CTTY)
-  setpgid (pid, pid);
-#endif
-
-  /* setpgrp_of_tty is incorrect here; it uses input_fd.  */
+  setpgid (0, 0);
   tcsetpgrp (0, pid);
 
   /* execvp does not accept an environment arg so the only way


it replaces setpgid (pid, pid) with setpgid (0, 0) on GNU/Linux.




This bug report was last modified 12 years and 181 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.