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

@ -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);
}