Changeset fe1f605


Ignore:
Timestamp:
Mar 1, 2004, 10:50:22 PM (21 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
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • ChangeLog

    r948b942 rfe1f605  
    1111        Print C-\ correctly (from gildea)
    1212        Dropped first brace in muxevents functions for consistency
     13        Catch SIGHUP and SIGTERM and do a proper logout
    1314       
    14152.1.5
  • functions.c

    rafbf668 rfe1f605  
    964964  /* Quit zephyr */
    965965  owl_zephyr_shutdown();
    966 
    967966 
    968967  /* Quit AIM */
  • 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.