Changeset fe1f605 for owl.c


Ignore:
Timestamp:
Mar 1, 2004, 10:50:22 PM (20 years ago)
Author:
James M. Kretchmar <kretch@mit.edu>
Branches:
master, barnowl_perlaim, debian, owl, release-1.10, release-1.4, release-1.5, release-1.6, release-1.7, release-1.8, release-1.9
Children:
d4b84c0
Parents:
948b942
Message:
Catch SIGHUP and SIGTERM and do a proper logout
File:
1 edited

Legend:

Unmodified
Added
Removed
  • owl.c

    rafbf668 rfe1f605  
    152152  sigaction(SIGALRM, &sigact, NULL);
    153153  sigaction(SIGPIPE, &sigact, NULL);
     154  sigaction(SIGTERM, &sigact, NULL);
     155  sigaction(SIGHUP, &sigact, NULL);
    154156
    155157  /* screen init */
     
    694696     * so we can record that we got it and why... */
    695697    owl_global_set_errsignal(&g, sig, si);
     698  } else if (sig==SIGTERM || sig==SIGHUP) {
     699    owl_function_quit();
    696700  }
    697701
Note: See TracChangeset for help on using the changeset viewer.