Changeset 40bda84 for global.c


Ignore:
Timestamp:
Oct 3, 2009, 10:11:30 AM (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:
340c3e7
Parents:
e2f7963
git-author:
Nelson Elhage <nelhage@mit.edu> (09/14/09 21:06:14)
git-committer:
Nelson Elhage <nelhage@mit.edu> (10/03/09 10:11:30)
Message:
Catch ^Z and display a message instead of suspending.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • global.c

    r8240bce r40bda84  
    115115  g->timerlist = NULL;
    116116  g->interrupted = FALSE;
     117  g->got_sigtstp = FALSE;
    117118}
    118119
     
    968969  g->interrupted = 0;
    969970}
     971
     972int owl_global_is_sigstp(const owl_global *g) {
     973  return g->got_sigtstp;
     974}
     975
     976void owl_global_set_got_sigstp(owl_global *g) {
     977  g->got_sigtstp = 1;
     978}
     979
     980void owl_global_unset_got_sigstp(owl_global *g) {
     981  g->got_sigtstp = 0;
     982}
Note: See TracChangeset for help on using the changeset viewer.