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

Re: mntlib46: system(), sysconf()



In <9504121432.AA15694@math.uni-muenster.de> Bjarne Pohlers wrote:

> |>Unix-style libs? If so, system() breaks here! Why don't you
> |>simply fork(), child calls `/bin/sh -c' with the argument and
> |>parent waits (wait()) for termination?
> 
> Please do not throw away the old system code. Call it _system or
> something like that. It is often useful uf you want to start a program
> and you do not have a /bin/sh installed!

And how are you going to login into your system without a shell?
In fact you wouldn't even get as far as a login prompt, init
needs /bin/sh to run the rc scripts.

Waldi