From 591debed68a04fe88e4c0225fd53272d2045f327 Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Tue, 25 Feb 2014 11:06:53 -0800 Subject: Fix emacsclient's handling of SIGCONT. * emacsclient.c (handle_sigcont): Cancel the continue only if tty. Fixes: debbugs:16883 --- lib-src/emacsclient.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib-src/emacsclient.c') 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); } -- cgit v1.2.1