I forgot to mask off the signal to avoid traditional delivery:
    sigprocmask(SIG_BLOCK, &s, &oldmask);
>   for (i=0; i<n; i++)
>      if (sigwaitinfo(&s, buf+i))
>         break;
>   m = n * sizeof(siginfo_t);
>   sigaction(SIGUSR1, &oldaction, 0);
    sigprocmask(SIG_UNBLOCK, &s);
 
> (apologies if any of the above is wrong)
- Dan
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/