Refactor process.go for platform specific

Signed-off-by: John Howard <jhoward@microsoft.com>
This commit is contained in:
John Howard 2016-02-25 12:59:34 -08:00
parent 3856e27560
commit 1acf68535a
3 changed files with 46 additions and 22 deletions

View file

@ -0,0 +1,19 @@
package runtime
import "os"
// TODO Windows: Linux uses syscalls which don't map to Windows. Needs alternate mechanism
func getExitPipe(path string) (*os.File, error) {
return nil, nil
}
// TODO Windows: Linux uses syscalls which don't map to Windows. Needs alternate mechanism
func getControlPipe(path string) (*os.File, error) {
return nil, nil
}
// TODO Windows. Windows does not support signals. Need alternate mechanism
// Signal sends the provided signal to the process
func (p *process) Signal(s os.Signal) error {
return nil
}