[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

A thought about some things in es.



I was just reading `Design and Implementation of the BSD 4.4 Operating
System' and I ran across the section on job control (which es made me
stop wanting).  And I thought that it would be pretty easy to implement
it es.  Has someone tried this?  It seems that what one would have to
do is create one new primitive (something to do a tcspgrp) and
change $&fork and $&wait to do a little more.

In the case of wait, this is no big deal because it does so little that
making it do more would not be noticed (and its return value is not
specified).  The change to $&fork would actually make it fork and _not_
wait.  Then you could implement fork as something like

fn fork something {
	$&wait <={ %fork something }
}

Then, with these three changes, I think that you could implement a
csh(1) job control (granted a dubious thing, but kinda neat).  

What do people think?

Soren