File: exec_windows.go

package info (click to toggle)
golang-github-juju-utils 0.0~git20171220.f38c0b0-6
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 1,748 kB
  • sloc: makefile: 20
file content (19 lines) | stat: -rw-r--r-- 394 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
// Copyright 2016 Canonical Ltd.
// Copyright 2016 Cloudbase Solutions SRL
// Licensed under the LGPLv3, see LICENCE file for details.

// +build windows

package exec

import (
	"os"
)

// KillProcess tries to kill the process passed in.
func KillProcess(proc *os.Process) error {
	return proc.Kill()
}

// populateSysProcAttr is a noop on windows
func (r *RunParams) populateSysProcAttr() {}