[comp.os.mach] Catching process abort/exit under Mach or OSF/1

limey@hri.com (Craig Hughes) (06/05/91)

Here's a little application problem I'm dealing with right now. Any
input from experienced mach programmers would be appreciated:

I'd like to be able to catch, via a user process, when any process
running under Mach terminates either normally or abnormally. I believe this
can be done with exception port manipulation, but I'm not sure how
(I'm new to mach programming).

I'd also like to be able to catch a normal exit, and I suspect I can
modify some library code to do that ( put code inside exit() for
example), but if there's a more general way of catching this event,
please enlighten me....

FYI: The reason I want to do this is to tidy up some special data
structures that will be shared with other processes.

Thanks in advance

-craig
-- 
--------------------------------------------------------------------------------
Craig S. Hughes				UUCP: ...bbn!hri.com!limey
Horizon Research, Inc.			INET: limey@hri.com
1432 Main Street
Waltham, MA 02154			
			<- ------------- ->
--------------------------------------------------------------------------------