]> git.eshelyaron.com Git - emacs.git/commit
Fix emacsclient terminal corruption when in background.
authorPaul Eggert <eggert@cs.ucla.edu>
Sun, 9 Mar 2014 22:38:15 +0000 (15:38 -0700)
committerPaul Eggert <eggert@cs.ucla.edu>
Sun, 9 Mar 2014 22:38:15 +0000 (15:38 -0700)
commitd050de754c22013db5fb8f57650d22581393ed79
treebb7394e94411377cfcd621f57a6cf1cf03933bc6
parenteb67db411128bd47548e4a62d7272df81b75d29a
Fix emacsclient terminal corruption when in background.

* emacsclient.c (handle_sigcont): Check for tcgetpgrp failure.
Cancel the continue only if tty.  Send SIGTTIN to the process
group, not SIGSTOP to self, as this is what the glibc manual
recommends.
(main): If tty, and if started in the background, send SIGTTIN
to the process group.

Fixes: debbugs:16892
lib-src/ChangeLog
lib-src/emacsclient.c