Changeset 40bda84 for owl.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
  • owl.c

    rc79a047 r40bda84  
    378378}
    379379
     380void sigtstp_handler(int sig, siginfo_t *si, void *data)
     381{
     382  owl_global_set_got_sigstp(&g);
     383}
     384
    380385void owl_register_signal_handlers(void) {
    381386  struct sigaction sigact;
     
    395400  sigaction(SIGINT, &sigact, NULL);
    396401
     402  sigact.sa_sigaction=sigtstp_handler;
     403  sigaction(SIGTSTP, &sigact, NULL);
    397404}
    398405
Note: See TracChangeset for help on using the changeset viewer.