openwhisk-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Michele Sciabarra <mich...@sciabarra.com>
Subject Re: [LONG] Discussing my implementation of Go actions
Date Fri, 09 Mar 2018 13:49:22 GMT
> I would prefer it not be there, but can see the convenience of detecting 
> that an app has immediately crashed. If we can find another way to do 
> that via process inspection, that would be better in my view.
> 
The problem can be summarised into this code:

        // this command exits
	cmd := exec.Command("true")
	out, err := cmd.StdoutPipe()
	
        err = cmd.Start()
	fmt.Println(err) 	
       // this is nil! no error!

	// even worse! attempted to detect
	err = cmd.Process.Signal(syscall.Signal(0))
	// this is nil too! no error!
	fmt.Println(err)

So, how can I check the process is actually terminated ? 

Mime
View raw message