Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!think.com!cass.ma02.bull.com!mips2!bbn.com!nic!hri!sparc2!limey From: limey@hri.com (Craig Hughes) Newsgroups: comp.os.mach Subject: Catching process abort/exit under Mach or OSF/1 Message-ID: <1991Jun4.180114.16089@hri.com> Date: 4 Jun 91 18:01:14 GMT Sender: news@hri.com (News Admin) Reply-To: limey@hri.com Organization: Horizon Research, Inc. Lines: 28 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 <- ------------- -> --------------------------------------------------------------------------------