> I am writing a program which uses messageports to communicate with
>other programs. Now I'm switching to gcc, but I have a few problems
>with gcc. The program needs to wait for message-arrivel on the ports,
>but that waiting must be interruptable by a SIGALRM arrival. I tried
>a few things, but I seem to be doing something wrong, `cos I can't get
>I installed a handler for SIGMSG
>I installed a handler for SIGALRM
>then I do :
> sigpause(0); /* wait until we are interrupted */
>But sigpause is not interrupted by arrival of a message :(
>Can someone tell me what I'm doing wrong ?
I've never used gcc.
At a guess, I'd say you have to figure out which Exec Signal bits
are being used by gcc's signal, and use them with the ones from
your Exec Message Port(s) in an Exec Wait().
Worst case, you may have to write an Exec Exception handler for
_your_ Exec Signals. That's quite difficult.
Or you could split it into two processes. One does waiting for
Exec Signals, one does waiting for gcc signals. The slave
signals the master using the master's mechanism whenever something
U302, 3510 44St SW, Calgary, Alberta, T3E 3R9, CANADA Tel: +1 403 242-0848
-----BEGIN PGP PUBLIC KEY BLOCK-----
-----END PGP PUBLIC KEY BLOCK-----
[Pls ignore if you don't have PGP secure-mail program. See sci.crypt.]