sigwaitinfo not working

sigwaitinfo not working

Post by Charles M. Parke » Wed, 21 Apr 1999 04:00:00

I'm trying to write a POSIX program to capture SIGRTMIN signals in a
dedicated thread using sigwaitinfo on a Solaris machine. I've copied an
example directly (almost) from the O'Reilly POSIX.4 book. I know my
interval timer is generating the expected signals from testing a single
thread version with a signal handler.

In my multi-thread version I never return from the sigwaitinfo call, and
my console prints "First Realtime Signal" which is probably because the
signal is never handled.

Any suggies?

Thanx - Charlie

Charles M. Parker           |         |
Cisco Systems, Inc.        :|:       :|:
(919)472-2229 Fax-3887    :|||:     :|||:


1. sigwaitinfo not working

Yo mavens - does anyone have an idea on this? I'm writing a POSIX.4
program on Solaris, and I've started a thread which basically looks like
   sigset_t set;
   siginfo_t my_data;
   sigemptyset( &set );
   sigaddset( &set, SIGRTMIN );
   sigprocmask( SIG_BLOCK, &set, NULL );
   sigwaitinfo( &set, &my_data );
This is basically copied from chapter 3 of the O'Reilly POSIX.4 book. I'm
definitely generating SIGRTMIN signals from an interval timer, but I never
get back from the sigwaitinfo function.

What am I missing?

Thanx - Charlie

Charles M. Parker           |         |
Cisco Systems, Inc.        :|:       :|:
(919)472-2229 Fax-3887    :|||:     :|||:

2. NFS bugs

3. sigwaitinfo

4. Prism mercury and XWindows

5. sigwaitinfo()

6. X86 Academic Promotion over?

7. sigwaitinfo code contest!

8. UDMA problem?

9. sigwaitinfo() code contest!

10. sigwaitinfo()

11. sigwaitinfo in MT

12. sigwaitinfo and SuSE7.1/linux2.4

13. Help with sigwaitinfo() & timers & threads