summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: a3d7f57)
raw | patch | inline | side by side (parent: a3d7f57)
author | Kalle Wallin <kaw@linux.se> | |
Mon, 12 Jul 2004 20:21:15 +0000 (20:21 +0000) | ||
committer | Kalle Wallin <kaw@linux.se> | |
Mon, 12 Jul 2004 20:21:15 +0000 (20:21 +0000) |
src/main.c | patch | blob | history |
diff --git a/src/main.c b/src/main.c
index abe60bf152ecd9951d23fc2bdb781fd0ed0a6d01..9497e3b61f80c81d87ea4b0850a47528f79400fa 100644 (file)
--- a/src/main.c
+++ b/src/main.c
exit(EXIT_SUCCESS);
}
+void
+catch_sigcont( int sig )
+{
+ D("catch_sigcont()\n");
+ screen_resize();
+}
+
#ifdef DEBUG
void
D(char *format, ...)
sigemptyset( &act.sa_mask );
act.sa_flags = 0;
act.sa_handler = catch_sigint;
- if( sigaction( SIGINT, &act, NULL )<0 )
+ if( sigaction(SIGINT, &act, NULL)<0 )
{
perror("signal");
exit(EXIT_FAILURE);
sigemptyset( &act.sa_mask );
act.sa_flags = 0;
act.sa_handler = catch_sigint;
- if( sigaction( SIGTERM, &act, NULL )<0 )
+ if( sigaction(SIGTERM, &act, NULL)<0 )
{
perror("sigaction()");
exit(EXIT_FAILURE);
}
+ /* setup signal behavior - SIGCONT */
+ sigemptyset( &act.sa_mask );
+ act.sa_flags = 0;
+ act.sa_handler = catch_sigcont;
+ if( sigaction(SIGCONT, &act, NULL)<0 )
+ {
+ perror("sigaction(SIGCONT)");
+ exit(EXIT_FAILURE);
+ }
/* install exit function */
atexit(exit_and_cleanup);