help-smalltalk
[Top][All Lists]
Advanced

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

Re: [Help-smalltalk] [PATCH] osprocess: Introduce a simple sub-process p


From: Holger Hans Peter Freyther
Subject: Re: [Help-smalltalk] [PATCH] osprocess: Introduce a simple sub-process package
Date: Sun, 2 Nov 2014 11:28:09 +0100
User-agent: Mutt/1.5.23 (2014-03-12)

On Sat, May 11, 2013 at 08:15:45PM +0200, Paolo Bonzini wrote:

> Perhaps the user interface should just be
> 
>     OSProcess new
>           ... ;
>           exec: command args: args;
>           yourself
> 
> You could have methods like
> 
>     FileDescriptor class>>#twoPipes (returns an array of two pipes)
>     OSProcess>>#stdin: (accepts a readable FileDescriptor)
>     OSProcess>>#stdout: (accepts a writeable FileDescriptor)
>     OSProcess>>#stderr: (accepts a writeable FileDescriptor)
>     OSProcess>>#stdin
>     OSProcess>>#stdout
>     OSProcess>>#stderr
>     OSProcess>>#stdinPipe (returns the write side)
>     OSProcess>>#stdoutPipe (returns the read side)
>     OSProcess>>#stderrPipe (returns the read side)
> 
> Thanks for doing this.  It's been on my todo list forever.

Any opinion on SIGCHLD/wait handling? Should there be a semaphore
in OSProcess to indicate the termination of the process or should
we hope that the termination will lead to the socket being closed
and this is something that leads to EndOfStream notification?

holger




reply via email to

[Prev in Thread] Current Thread [Next in Thread]