Subject: Signal problems with -current on Sparc
To: None <port-sparc@netbsd.org>
From: Tom Ivar Helbekkmo <tih@nhh.no>
List: current-users
Date: 10/12/1998 21:28:08
The recent signal handling changes haven't come out quite right on the
Sparc.  The following little test program works fine on /i386-current,
but dumps core on /sparc-current.  Both systems are built from source
tar balls dated 1998-10-03.

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

sigjmp_buf jbuf;

void handler()
{
  siglongjmp(jbuf, 1);
}

int main (int argc, char **argv) {
  if (sigsetjmp(jbuf, 1) != 0) {
    fprintf(stderr, "SIGQUIT received\n");
    return 0;
  }
  signal(SIGQUIT, handler);
  sleep(1);
  kill(0, SIGQUIT);
  pause();
  return 0;
}

-tih
-- 
Popularity is the hallmark of mediocrity.  --Niles Crane, "Frasier"