Re: [go-nuts] Re: How to capture stderr/stdout of cgo calls?

2016-08-05 Thread Markus Zimmermann
You are right Sebastien, I fixed that. Thanks! On Thursday, August 4, 2016 at 6:58:06 PM UTC+2, Sebastien Binet wrote: > > > > On Thu, Aug 4, 2016 at 1:07 PM, Markus Zimmermann > wrote: > >> I feared that there would be no pure Go solution. Anyway, I used fdopen >> variant

[go-nuts] Re: How to capture stderr/stdout of cgo calls?

2016-08-04 Thread mattn
I guess calling freopen is better because cgo possibly having reference of stdin/stdout as FILE*. On Thursday, August 4, 2016 at 8:07:40 PM UTC+9, Markus Zimmermann wrote: > > I feared that there would be no pure Go solution. Anyway, I used fdopen > variant the code is here >