🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.unix
Article #716

Re: subopen (was: What kinds of things would you want in the GNU OS?)

#716
From: gwyn
Date: Mon, 12 Jun 1989 07:40
21 lines
1514 bytes
In article <1989Jun5.112231.21303@light.uucp>, bvs@light.uucp (Bakul Shah) writes:
>It is equally easy (and less magical) to let each process inherit the
>handles it needs.

This is inherent in the use of kernel data pointers.  The real trick is
how to communicate handles between processes (across "exec", etc.).  We
need suitable IPC anyway, which should be able to provide what's needed.
The UNIX approach of having the kernel maintain file tables for processes,
indexed by small integers, doesn't seem to generalize well; one needs to
know which small integers mean what when a process begins.

>You may say the kernel already maintains u_cdir (cwd) and u_rdir (root)
>inode ptrs so what is the big deal.  My point is that we don't need them
>so why keep them.

Exactly!  However, there is a need for a "virgin" process to acquire its
first handle so it can get others.  Inheritance is useful but incomplete.

>IMO kernel maintained variables are even worse than global variables.

Yes, yes.
Technical Details
Message-ID: <1225@altos86.UUCP>
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!versatc!icldata!altos86!dtynan
References: <106326@sun.Eng.Sun.COM> <4315@ficc.uu.net> <338@arc.UUCP> <1989Jun5.112231.21303@light.uucp>

Show Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!utzoo!attcan!utgpu!jarvis.csri.toronto.edu!mailrus!tut.cis.ohio-state.edu!bloom-beacon!apple!versatc!icldata!altos86!dtynan
From: gwyn@BRL.MIL
Newsgroups: comp.unix
Subject: Re: subopen (was: What kinds of things would you want in the GNU OS?)
Message-ID: <1225@altos86.UUCP>
Date: 12 Jun 89 07:40:46 GMT
References: <106326@sun.Eng.Sun.COM> <4315@ficc.uu.net> <338@arc.UUCP> <1989Jun5.112231.21303@light.uucp>
Sender: dtynan@Altos.COM
Lines: 21
Approved: dtynan@zorba.Tynan.COM