Fix emacsclient's handling of SIGCONT.

* emacsclient.c (handle_sigcont): Cancel the continue only if tty.

Fixes: debbugs:16883
This commit is contained in:
Paul Eggert 2014-02-25 11:06:53 -08:00
parent 9a89cfa29d
commit 591debed68
2 changed files with 8 additions and 3 deletions

View file

@ -1,3 +1,8 @@
2014-02-25 Andreas Amann <a.amann@ucc.ie> (tiny change)
Fix emacsclient's handling of SIGCONT (Bug#16883).
* emacsclient.c (handle_sigcont): Cancel the continue only if tty.
2014-01-22 Eli Zaretskii <eliz@gnu.org>
* update-game-score.c (write_scores) [WINDOWSNT]: Use chmod

View file

@ -1108,12 +1108,12 @@ handle_sigcont (int signalnum)
if (tcgetpgrp (1) == getpgrp ())
{
/* We are in the foreground. */
/* We are in the foreground. */
send_to_emacs (emacs_socket, "-resume \n");
}
else
else if (tty)
{
/* We are in the background; cancel the continue. */
/* We are in the background; cancel the continue. */
raise (SIGSTOP);
}