Changeset b752f1e for select.c


Ignore:
Timestamp:
Dec 19, 2009, 10:19:04 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
1247aaa
Parents:
99c1f46
git-author:
Nelson Elhage <nelhage@mit.edu> (12/16/09 17:50:34)
git-committer:
Nelson Elhage <nelhage@mit.edu> (12/19/09 22:19:04)
Message:
Allow ^Z to be rebound.

Rather than catching SIGTSTP and doing things with it, disable VSUSP,
which causes ^Z to get passed through to us as a normal keystroke. In
addition, change the binding so that it prints the warning SIGTSTP
used to.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • select.c

    r7ca5d3e rb752f1e  
    303303  sigemptyset(&set);
    304304  sigaddset(&set, SIGINT);
    305   sigaddset(&set, SIGTSTP);
    306305  sigprocmask(SIG_BLOCK, &set, oldmask);
    307306}
     
    317316  in.ch = in.uch = owl_global_get_startup_tio(&g)->c_cc[VINTR];
    318317  owl_process_input_char(in);
    319 }
    320 
    321 void owl_select_check_tstp(void) {
    322   if(owl_global_is_sigstp(&g)) {
    323     owl_function_makemsg("Use :suspend to suspend.");
    324     owl_global_unset_got_sigstp(&g);
    325   }
    326318}
    327319
     
    398390  owl_select_mask_signals(&mask);
    399391
    400   owl_select_check_tstp();
    401392  if(owl_global_is_interrupted(&g)) {
    402393    owl_select_handle_intr(&mask);
     
    447438
    448439  if(ret < 0 && errno == EINTR) {
    449     owl_select_check_tstp();
    450440    if(owl_global_is_interrupted(&g)) {
    451441      owl_select_handle_intr(NULL);
Note: See TracChangeset for help on using the changeset viewer.