[go-nuts] Cmd.Process.Start() on Windows have wrong Pid

2018-03-01 Thread Tamás Gulácsi
When I start "calc", I see "calc.exe" in the task list, NOT "calculator.exe". Maybe your "calc" starts "calculator.exe", and then exits? -- You received this message because you are subscribed to the Google Groups "golang-nuts" group. To unsubscribe from this group and stop receiving emails from

[go-nuts] Cmd.Process.Start() on Windows have wrong Pid

2018-03-01 Thread Felian _
Hi. I faced a strange problem on Windows. Consider the following code: package main import ( "fmt" "os/exec" "regexp" "strconv" "strings" "time" ) func main() { // execute the calc cmd := exec.Command("calc") if err := cmd.Start(); err != nil { fmt.Println(">>0",