Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 13 Jul 1998 10:07:31 +0200
From:      Stefan Eggers <seggers@semyam.dinoco.de>
To:        "Allen Smith" <easmith@beatrice.rutgers.edu>
Cc:        seggers@semyam.dinoco.de, freebsd-hackers@FreeBSD.ORG
Subject:   Re: Best means of telling if a proc is still around? 
Message-ID:  <199807130807.KAA04341@semyam.dinoco.de>
In-Reply-To: Your message of "Sun, 12 Jul 1998 22:45:30 EDT." <9807122245.ZM24864@beatrice.rutgers.edu> 

next in thread | previous in thread | raw e-mail | index | archive | help
> Hi. What's the best fast means of telling if a reference to a proc
> structure is still valid? I'm needing this for the work on privileges
> that I'm doing. (Specifically, there are circumstances where an action
> initiated by a process that then exits may be a privileged one, and
> may not get to the point of checking the privileges before the exit
> takes place.)

Use at_exit(9) to know when it exits.  If it is important to you an
at_exec(9) might be needed, too.  The latter does not exist, yet.

Stefan.
-- 
Stefan Eggers                 Lu4 yao2 zhi1 ma3 li4,
Max-Slevogt-Str. 1            ri4 jiu3 jian4 ren2 xin1.
51109 Koeln
Federal Republic of Germany

To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-hackers" in the body of the message



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?199807130807.KAA04341>