process: Confusion about UseHandle handles being closed.

Bertram Felgenhauer bertram.felgenhauer at googlemail.com
Sat Nov 29 18:24:05 UTC 2014


Henning Thielemann wrote:
> 
> On Tue, 25 Nov 2014, Michael Snoyman wrote:
> 
> >1. Add clear documentation to `createProcess` indicating that it will close the `Handle` automatically.
> >2. Add a new function to be exported from `System.Process` with the semantics of `createProcess_`. I'm open
> >to bikeshedding on the name, but perhaps sticking with `createProcess_` makes the most sense.
> 
> I think the cleanest solution would be to add a new field (e.g. leaveOpen)
> to the CreateProcess record.

Wouldn't it be more natural to add a new constructor to the StdStream
type? Naming it could be tricky, though. ShareHandle, perhaps?

Cheers,

Bertram


More information about the Libraries mailing list