github.com/xyproto/u-root@v6.0.1-0.20200302025726-5528e0c77a3c+incompatible/cmds/core/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  }