diff options
| author | Paul Eggert | 2014-02-25 11:06:53 -0800 |
|---|---|---|
| committer | Paul Eggert | 2014-02-25 11:06:53 -0800 |
| commit | 591debed68a04fe88e4c0225fd53272d2045f327 (patch) | |
| tree | 53f1c8cb49d91238004036921e8f86d5e0b4104f /lib-src | |
| parent | 9a89cfa29d9ec1db1be81e3adef28ff703fddaa5 (diff) | |
| download | emacs-591debed68a04fe88e4c0225fd53272d2045f327.tar.gz emacs-591debed68a04fe88e4c0225fd53272d2045f327.zip | |
Fix emacsclient's handling of SIGCONT.
* emacsclient.c (handle_sigcont): Cancel the continue only if tty.
Fixes: debbugs:16883
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 6 |
2 files changed, 8 insertions, 3 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index fcdde8003bc..3cbda8a7706 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2014-02-25 Andreas Amann <a.amann@ucc.ie> (tiny change) | ||
| 2 | |||
| 3 | Fix emacsclient's handling of SIGCONT (Bug#16883). | ||
| 4 | * emacsclient.c (handle_sigcont): Cancel the continue only if tty. | ||
| 5 | |||
| 1 | 2014-01-22 Eli Zaretskii <eliz@gnu.org> | 6 | 2014-01-22 Eli Zaretskii <eliz@gnu.org> |
| 2 | 7 | ||
| 3 | * update-game-score.c (write_scores) [WINDOWSNT]: Use chmod | 8 | * update-game-score.c (write_scores) [WINDOWSNT]: Use chmod |
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) | |||
| 1108 | 1108 | ||
| 1109 | if (tcgetpgrp (1) == getpgrp ()) | 1109 | if (tcgetpgrp (1) == getpgrp ()) |
| 1110 | { | 1110 | { |
| 1111 | /* We are in the foreground. */ | 1111 | /* We are in the foreground. */ |
| 1112 | send_to_emacs (emacs_socket, "-resume \n"); | 1112 | send_to_emacs (emacs_socket, "-resume \n"); |
| 1113 | } | 1113 | } |
| 1114 | else | 1114 | else if (tty) |
| 1115 | { | 1115 | { |
| 1116 | /* We are in the background; cancel the continue. */ | 1116 | /* We are in the background; cancel the continue. */ |
| 1117 | raise (SIGSTOP); | 1117 | raise (SIGSTOP); |
| 1118 | } | 1118 | } |
| 1119 | 1119 | ||