From: Yonik Christopher Seeley (yseeley@leland.Stanford.EDU)
Date: 08/08/93


From: yseeley@leland.Stanford.EDU (Yonik Christopher Seeley)
Subject: I only catch first SIGWINCH
Date: Sun, 8 Aug 1993 06:55:02 GMT


Hey everyone, I am very sorry if this is not linux specific, but
I got my code to work on both sparcstations and decstations, and
not linux. When I run the included test program in an xterm, and
try resizing the xterm (bash shell in twm), I only seem to catch the
first SIGWINCH signal.

I am using stock SLS1.03 (yes it stopped crashing thanks to the
fix that was posted about changing around the rc.net file. Thanks
to everyone who helped! I am once again a happy linux user :-)

- Yonik Seeley
yseeley@cs.standford.edu

=========================================================================
#include <stdio.h>
#include <signal.h>

void sig_handle() {
   printf("Got a SIGWINCH!\n");
   fflush(stdout);
}

int main() {
   if ((int)signal(SIGWINCH, sig_handle) == -1) {
      perror("signal error");
      return 1;
   }
   getchar();
   return 0;
}