https://github.com/golang/go/blob/master/src/os/exec/exec.go#L484 set
io.Writer explicitly so it looks like a bug
среда, 13 июля 2016 г., 23:50:56 UTC+3 пользователь noxiouz написал:
>
> Good day!
>
> I faced a corner case of cmd.Exec usage and want to find out if it's
&g
t.
> import sys
> ...
> if pid == 0:
>sys.stdin.close()
>sys.stdout.close()
>
> On 13/07/2016 21:50, noxiouz wrote:
>
> Good day!
>
> I faced a corner case of cmd.Exec usage and want to find out if it's
> designed behavior.
>
>
> go version g
Good day!
I faced a corner case of cmd.Exec usage and want to find out if it's
designed behavior.
go version go1.6.2 darwin/amd64 and linux
>
Let's assume we use cmd.Exec to start some process, that can fork and dies,
but the fork will live forever. For example:
#!/usr/bin/env python
import