Subject: Re: signal stuff...
To: None <tech-kern@netbsd.org>
From: Christos Zoulas <christos@zoulas.com>
List: tech-kern
Date: 01/08/1999 11:10:40
In article <19990108115308.D834@cs.uni-bonn.de> ignatios@cs.uni-bonn.de (Ignatios Souvatzis) writes:

>  act.sa_handler = (void (*)(int)) &chkpt_restore;
>  act.sa_flags |= SA_ONSTACK;

add:
   sigemptyset(&act.sa_mask);

>  if (sigaction(SIGUSR1, &act, (struct sigaction *) NULL) == 0) {
> } else {
>#if defined(IAGNOSTIC)
>    debug("chkpt_init(): error: Installation of handler SIGUSR1 failed.\n");
>#endif
>    return E_CHKPT_SYS;
>  }
>...
>
>
>What is wrong here? Any include missing?

You gave it a bogus mask.

christos