[uClinux-dev] Threading and synchronization questions
vapier at gentoo.org
Fri Feb 27 21:59:55 EST 2009
On Friday 27 February 2009 15:16:45 Lennart Sorensen wrote:
> On Fri, Feb 27, 2009 at 11:17:19AM -0500, Mike Frysinger wrote:
> > file descriptors are not shared resources. whatever a child does with
> > them will not affect the parent.
> I was hoping that was the case. It did seem like vfork + exac would
> loose a lot of purpose if file descriptors weren't duplicated by vfork.
yeah, it would make redirecting of std* fd's real painful (like daemonizing
code). i didnt think vforked children having their own fd's would work under
no-mmu until i thought about it a bit more. the fd indirection with the
kernel can be thought of a little like a mmu: the real resources are
translated to per-process identifiers.
-------------- next part --------------
A non-text attachment was scrubbed...
Size: 836 bytes
Desc: This is a digitally signed message part.
More information about the uClinux-dev