summaryrefslogtreecommitdiff
path: root/lib-src/emacsclient.c
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2014-02-25 11:06:53 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2014-02-25 11:06:53 -0800
commit591debed68a04fe88e4c0225fd53272d2045f327 (patch)
tree53f1c8cb49d91238004036921e8f86d5e0b4104f /lib-src/emacsclient.c
parent9a89cfa29d9ec1db1be81e3adef28ff703fddaa5 (diff)
downloademacs-591debed68a04fe88e4c0225fd53272d2045f327.tar.gz
Fix emacsclient's handling of SIGCONT.
* emacsclient.c (handle_sigcont): Cancel the continue only if tty. Fixes: debbugs:16883
Diffstat (limited to 'lib-src/emacsclient.c')
-rw-r--r--lib-src/emacsclient.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c
index 6593b91e39a..148182a6ccf 100644
--- a/lib-src/emacsclient.c
+++ b/lib-src/emacsclient.c
@@ -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);
}