if the child is a win16 executable then wait for the child thread
rather than the child process.


/mnt/term/wdir		current directory - read/write
/mnt/term/cpunote	read notes - interrupt, hangup
/mnt/term/dev/cons	read stdin
/mnt/term/dev/cons	write stdout
/mnt/term/dev/cons	write stderr

set user=
set prompt="host%"
set service=cpu
set objtype=386
set cputype=386

need a 9p client to talk down the wire

On connect,
	listen for proto=pass
	send username and password
	listen for OK or errormessage
	start relay threads for console and note process.

how to keep wdir in sync?

do a network join of m: onto /n/dfs thus remote
and local paths match exatly. The only alternative is
some form of translation - of cwd on connect and dynamicially
as the sell moves about - maybe have a fifo in windows
land which I can send messages to with a command? longer term
a proper exported virtual windows interface would be nice.


IFS Kit 
http://www.acc.umu.se/~bosse/
http://web.mit.edu/fifs/www/

	"Act as part of the operating system"
	"Increase Quotas"
	"Replace a process level token"
	"Restore files and directories"

#m:\eng\home\stevesimon\work\9win\sys\src\cmd\win32\listen1.exe  -d -d -d tcp!*!9900 m:\eng\home\stevesimon\work\9win\sys\src\cmd\win32\cpu\cpud.exe

cpu -k 'user=stevesimon@snellwilcox'  -a tlspass -h tcp!acroncompile1!9900
