Re: thread rant

From: Richard Gooch (rgooch@ras.ucalgary.ca)
Date: Sat Sep 02 2000 - 14:45:52 EST


Ingo Molnar writes:
>
> On Sat, 2 Sep 2000, Alexander Viro wrote:
>
> > > what i mean is that i dont like the cleanup issues associated with SysV
> > > shared memory - eg. it can hang around even if all users have exited, so
> > > auto-cleanup of resources is not possible.
> >
> > unlink() and the last munmap()/exit() will get rid of it...
>
> yep - and this isnt possible with traditional SysV shared memory,
> and isnt possible with traditional SysV semaphores. (forget my
> filesystem comment, it's a thinko.)

Huh? After attaching, if you "delete" a SHMID, it will be removed when
all processes referring to it unattach or die. Fairly similar
semantics.

                                Regards,

                                        Richard....
Permanent: rgooch@atnf.csiro.au
Current: rgooch@ras.ucalgary.ca
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.kernel.org
Please read the FAQ at http://www.tux.org/lkml/



This archive was generated by hypermail 2b29 : Thu Sep 07 2000 - 21:00:13 EST