Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Aug 1996 13:00:50 +1000
From:      George Scott <George.Scott@cc.monash.edu.au>
To:        terry@lambert.org
Cc:        current@FreeBSD.org
Subject:   Re: FreeBSD malloc.c, -lmalloc, and squid.
Message-ID:  <199608290300.NAA08388@moa.cc.monash.edu.au>

next in thread | raw e-mail | index | archive | help
> The tentative implementation I was favoring used the following model:
> 
> 1)	Process logical names
> 
> 	o	Hung of proc struct of current process

I'm not sure what this means!

Could these logicals be accessed as a directory structure in procfs?
Something like /proc/127/env/SHELL which can be read, written and unlinked
to do getenv, setenv and unsetenv respectively for process 127?

This would allow access to be controlled with the normal filesystem mode bits
and would save us from having to have yet another set of system calls to
implemented.  The down side would be that having a procfs mounted would be
almost mandatory.

While I'm at it, creating a /proc/127/parent as a link to /proc/125 (meaning
that pid 125 is the parent of pid 127) would allow neat things such as shell
scripts that could set their parents environment variables with a simple:

echo "new value" >/proc/curproc/parent/env/PATH

George.
--
George Scott                       George.Scott@cc.monash.edu.au
Systems Programmer, Caulfield Computer Centre, Monash University



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