diff options
author | Paul Eggert <eggert@cs.ucla.edu> | 2013-01-10 18:40:58 -0800 |
---|---|---|
committer | Paul Eggert <eggert@cs.ucla.edu> | 2013-01-10 18:40:58 -0800 |
commit | b895642720aaf1d89e22c7cdda11990919622a72 (patch) | |
tree | 319a9a095ad702cbb7c93eb0a127444fd7874805 /lisp/emacs-lisp/lisp-mnt.el | |
parent | a778dd57d0da9004a72320f8082d4f6220f178e2 (diff) | |
download | emacs-b895642720aaf1d89e22c7cdda11990919622a72.tar.gz emacs-b895642720aaf1d89e22c7cdda11990919622a72.tar.bz2 emacs-b895642720aaf1d89e22c7cdda11990919622a72.zip |
emacsclient -t should not suspend Emacs server
* lisp.h, sysdep.c (block_tty_out_signal, unblock_tty_out_signal):
New functions.
* term.c (init_tty): Use them instead of rolling our own code.
* sysdep.c (tcsetpgrp_without_stopping): Likewise. Here, this
switches from 'signal' to 'pthread_sigmask', which is safer in
multithreaded applications.
* term.c (Fresume_tty): Don't bother dissociating if O_IGNORE_CTTY,
which has already arranged for that.
(dissociate_if_controlling_tty): If setsid fails, fall back on TIOCNOTTY.
This is the main part of the bug fix.
Fixes: debbugs:13387
Diffstat (limited to 'lisp/emacs-lisp/lisp-mnt.el')
0 files changed, 0 insertions, 0 deletions