Bernard Leclerc (bleclerc++at++cae.ca)
Thu, 9 May 1996 10:31:15 -0400
> Our Performer-based application interfaces with another simulation process.
> Upon termination, the simulation will send us a SIGTERM signal (signal 15).
> I'd like to know which is best: use SVR4 signal handling functions or
> the BSD 4.3 version? Both seems to work but I'd like to know which is better
> to coexist peacefully with Performer.
Dirk Rantzau wrote:
> I was also concerned with this topic a while ago and what I did was simply
> a name list dump on the performer libraries to see if there is
> any signal handling inside. In Performer 2.0 they seem to use some SVR4
> signal handling routines:
>
> % nm libpf.so | grep sig
> U handle_sigfpes
> U sigfpe_
> -> U sighold
> -> U sigrelse
> -> U sigset
> % nm libpr.so | grep sig
> U handle_sigfpes
> U sigfpe_
> -> U sighold
> -> U sigrelse
> -> U sigset
>
> Of course we don't know which signals they actually use, but maybe some
> of the performer guys can give us a hint.
Dirk,
You've answered my question.
Than man page on sigset(2) mention...
The POSIX signal routines (sigaction(2), sigpending(2), sigprocmask(2),
sigsuspend(2), sigsetjmp(3)), and the 4.3BSD signal routines (sigvec(3B),
signal(3B), sigblock(3B), sigpause(3B), sigsetmask(3B)) must NEVER be
used with signal(2) or sigset(2).
Then the answer is... Performer 2.0 uses SVR4 signal management. Accordingly, a
user application should not use neither POSIX nor BSD4.3 signal routines.
OK, it's fine for me, I'll use SVR4 stuff.
--
___/ | ___/ Bernard Leclerc e-mail: bleclerc++at++cae.ca
/ / | / Systems Engineer voice: +1 514 341 2000
/ / | __/ CAE Electronics Ltd. extension 2275
/ / | / 8585 Cote De Liesse fax: +1 514 340 5496
/ ____ | / P.O. Box 1800
_____/ _/ _| _____/ Saint-Laurent, Quebec, Canada, H4L-4X4
This archive was generated by hypermail 2.0b2 on Mon Aug 10 1998 - 17:52:53 PDT