commit | b0d1d43c014ddb3da33b73f355a28f7b5bb0cb79 | [log] [tgz] |
---|---|---|
author | Alex Brainman <alex.brainman@gmail.com> | Sun Feb 21 11:27:02 2021 +1100 |
committer | Alex Brainman <alex.brainman@gmail.com> | Sat Feb 27 04:07:30 2021 +0000 |
tree | 20613e3183333973c7e01cfc3a82c4bff9e083cd | |
parent | f36f78243c0c784c12079479984ffb57e9eb5792 [diff] |
windows/svc: make IsWindowsService handle parent exit IsWindowsService fails when parent process has exited. This change makes IsWindowsService return false instead. Added a test to verify the change. Change-Id: Ibb2aa9478e8afd9e35011bbdc0985bdf8f0af9cc Reviewed-on: https://go-review.googlesource.com/c/sys/+/294729 TryBot-Result: Go Bot <gobot@golang.org> Run-TryBot: Alex Brainman <alex.brainman@gmail.com> Reviewed-by: Jason A. Donenfeld <Jason@zx2c4.com> Trust: Jason A. Donenfeld <Jason@zx2c4.com> Trust: Alex Brainman <alex.brainman@gmail.com>
This repository holds supplemental Go packages for low-level interactions with the operating system.
The easiest way to install is to run go get -u golang.org/x/sys
. You can also manually git clone the repository to $GOPATH/src/golang.org/x/sys
.
This repository uses Gerrit for code changes. To learn how to submit changes to this repository, see https://golang.org/doc/contribute.html.
The main issue tracker for the sys repository is located at https://github.com/golang/go/issues. Prefix your issue with “x/sys:” in the subject line, so it is easy to find.