source code is:
//this code run in parent process
cmd:=exec.Command("cmd","/c","./child.exe")
if e:=cmd.Start();e!=nil{
//todo handle error
}
//child.exe handle task maybe long time
os.Exit() //notice!!! parent process will kill itself because test.exe will rm parent process
My problem is test.exe have anything log info in cmd.