Fix emacsclient's handling of SIGCONT.
authorPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Feb 2014 19:06:53 +0000 (11:06 -0800)
committerPaul Eggert <eggert@cs.ucla.edu>
Tue, 25 Feb 2014 19:06:53 +0000 (11:06 -0800)
* emacsclient.c (handle_sigcont): Cancel the continue only if tty.

Fixes: debbugs:16883

lib-src/ChangeLog
lib-src/emacsclient.c

index fcdde80..3cbda8a 100644 (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
index 6593b91..148182a 100644 (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);
     }