From: "Mauricio Fernández" Date: 2003-05-14T14:53:17+09:00 Subject: Re: RCR for child execution On Wed, May 14, 2003 at 02:46:38PM +0900, Hal E. Fulton wrote: > > It's not possible without breaking UNIX process model, which Ruby > > depends on. I don't want break this. It would screw up processes. > > > > How about forking off the Ruby interpreter to create a sandbox. By > > this way, you can create your own Ruby sandbox? > > > > +---------+ > > |Your C++ | > > | process | <= prepare pipes, fork, reopen fd(0,1,2), ruby_run() > > +--||-----+ > > +--||-----+ > > |Your Ruby| <= stdin/stdout/stderr is swapped before ruby_run() > > | process| > > +---------+ > > matz. > > I have followed this thread somewhat... and I think > this is a very interesting idea. > > I will be curious to see what Simon thinks of this. He wants a single process :-P -- _ _ | |__ __ _| |_ ___ _ __ ___ __ _ _ __ | '_ \ / _` | __/ __| '_ ` _ \ / _` | '_ \ | |_) | (_| | |_\__ \ | | | | | (_| | | | | |_.__/ \__,_|\__|___/_| |_| |_|\__,_|_| |_| Running Debian GNU/Linux Sid (unstable) batsman dot geo at yahoo dot com If you really want pure ASCII, save it as text... or browse it with your favorite browser... -- Alexandre Maret