bug-hurd
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: trivfs and port leaks


From: Marcus Brinkmann
Subject: Re: trivfs and port leaks
Date: Tue, 08 Feb 2005 23:24:07 +0100
User-agent: Wanderlust/2.10.1 (Watching The Wheels) SEMI/1.14.6 (Maruoka) FLIM/1.14.6 (Marutamachi) APEL/10.6 Emacs/21.3 (i386-pc-linux-gnu) MULE/5.0 (SAKAKI)

At Tue, 8 Feb 2005 16:46:20 -0500,
Ben Asselstine <benasselstine@gmail.com> wrote:
> 
> Hello,
> 
> This is an open question to anybody who knows about libtrivfs and how
> it's used to create translators.
> 
> Is there a reason that the trivfs-based translators in trans/ don't
> call trivfs_clean_cntl() to cleanup before exit()'ing in _goaway()?

I am not sure, but it is probably pretty hopeless as there is a lot of
state that you would have to clean up like the server threads etc.
 
> Are ports being leaked when a trivfs translator exits without cleaning
> up the cntl first?

No.  When a task is destroyed, all ports are destroyed and all
references to outside ports are released.  This is handled in Mach
(similar to file descriptors in Unix).

Thanks,
Marcus






reply via email to

[Prev in Thread] Current Thread [Next in Thread]