Changeset bf66f4e for functions.c


Ignore:
Timestamp:
May 4, 2009, 9:55:22 PM (12 years ago)
Author:
Nelson Elhage <nelhage@mit.edu>
Branches:
master, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
e0473d2
Parents:
3a84694
git-author:
Nelson Elhage <nelhage@mit.edu> (05/04/09 21:39:33)
git-committer:
Nelson Elhage <nelhage@mit.edu> (05/04/09 21:55:22)
Message:
Make ^C (really, SIGINT) interrupt searches.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • functions.c

    re6c59ba rbf66f4e  
    29902990  int viewsize, i, curmsg, start;
    29912991  owl_message *m;
     2992  sigset_t intr;
     2993  sigemptyset(&intr);
     2994  sigaddset(&intr, SIGINT);
    29922995
    29932996  v=owl_global_get_current_view(&g);
     
    30313034    } else {
    30323035      i--;
     3036    }
     3037    sigprocmask(SIG_BLOCK, &intr, NULL);
     3038    if(owl_global_is_interrupted(&g)) {
     3039      owl_global_unset_interrupted(&g);
     3040      owl_function_makemsg("Search interrupted!");
     3041      owl_mainwin_redisplay(owl_global_get_mainwin(&g));
     3042      return;
    30333043    }
    30343044  }
Note: See TracChangeset for help on using the changeset viewer.