Mercurial > pidgin
changeset 2083:f5659096bcd6
[gaim-migrate @ 2093]
this annoyed me.
committer: Tailor Script <tailor@pidgin.im>
author | Eric Warmenhoven <eric@warmenhoven.org> |
---|---|
date | Tue, 24 Jul 2001 22:33:52 +0000 |
parents | 3937f5eb6d75 |
children | 6c25411834dd |
files | src/aim.c |
diffstat | 1 files changed, 5 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/src/aim.c Tue Jul 24 22:23:23 2001 +0000 +++ b/src/aim.c Tue Jul 24 22:33:52 2001 +0000 @@ -389,6 +389,10 @@ void sighandler(int sig) { switch (sig) { + case SIGHUP: + debug_printf("caught signal %d\n", sig); + signoff_all(NULL, NULL); + break; case SIGSEGV: fprintf(stderr, "Gaim has segfaulted and attempted to dump a core file.\n" "Please notify the gaim maintainers by reporting a bug at\n" @@ -458,6 +462,7 @@ #endif signal(SIGHUP, sighandler); signal(SIGINT, sighandler); + signal(SIGTERM, sighandler); signal(SIGPIPE, SIG_IGN); #endif