github.com/mem/u-root@v2.0.1-0.20181004165302-9b18b4636a33+incompatible/cmds/elvish/eval/process_windows.go (about) 1 package eval 2 3 import "syscall" 4 5 // Process control functions in Windows. These are all NOPs. 6 func ignoreTTOU() {} 7 func unignoreTTOU() {} 8 func putSelfInFg() error { return nil } 9 10 const DETACHED_PROCESS = 0x00000008 11 12 func makeSysProcAttr(bg bool) *syscall.SysProcAttr { 13 flags := uint32(0) 14 if bg { 15 flags |= DETACHED_PROCESS 16 } 17 return &syscall.SysProcAttr{CreationFlags: flags} 18 }