[comp.os.os2.programmer] SIGNALS while in a DLL

nacer@hpmcaa.mcm.hp.com (Abdenacer Moussaoui) (08/02/90)

If a detached program S invokes a program P which installs a signal
handler and then calls a routine in a DLL.  Can the signal handling
routine in P receives signals at anytime?

My experimentation shows that P receives the signals anytime before
the routine in the DLL is called, however, once in the DLL (which
could be hung somewhere) signals don't seem to be received by the
installed handler, why?  
	-------------
	Signals are generated by program S who reports that P is not
responding.  The signal handler in P is installed as:

	DosSetSigHandler( SigHand, &pfnPA, &tmp, SIGA_ACCEPT, SIG_PFLG_A ) ;

Upon entry SigHand() issues:

	DosSetSigHandler( NULL, NULL, NULL, SIGA_ACKNOWLEDGE, SIG_PFLG_A ) ;
then proceeds dealing with the signal.

I am not sharp on this stuff so thank you for being clear.