Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitaly.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/NOTICE
diff options
context:
space:
mode:
authorblanet <bupt_xingxin@163.com>2021-04-23 12:02:08 +0300
committerblanet <bupt_xingxin@163.com>2021-04-23 18:06:37 +0300
commit9e1f75c6a4c8765e6a63bb078fd513a1afa3070a (patch)
tree50afb2d579610106795cf8e0872ee5cdcddac1f8 /NOTICE
parentac6e16eb6ce8c99e66cf06daa85010cd0001e7dc (diff)
command: Add test to detect goroutine leaks
Add TestNewNonExistent to help detecting goroutine leaks when spawning a non-existent command with nil stderr. When we `New` a command with nil stderr, a default stderr would be created to help logging possible cmd errors, and in the meanwhile we use io.Pipe to implement log size and line size limiting. However, if we encounter an error from the latter `cmd.Start()`, the PipeWriter will be left unclosed and related goroutine leaks. Signed-off-by: blanet <bupt_xingxin@163.com>
Diffstat (limited to 'NOTICE')
-rw-r--r--NOTICE24
1 files changed, 24 insertions, 0 deletions
diff --git a/NOTICE b/NOTICE
index 261bb9fbd..7a826cf45 100644
--- a/NOTICE
+++ b/NOTICE
@@ -12226,6 +12226,30 @@ LICENSE - go.opencensus.io
See the License for the specific language governing permissions and
limitations under the License.
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+LICENSE - go.uber.org/goleak
+The MIT License (MIT)
+
+Copyright (c) 2018 Uber Technologies, Inc.
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the &#34;Software&#34;), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED &#34;AS IS&#34;, WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
+
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
LICENSE - golang.org/x/crypto
Copyright (c) 2009 The Go Authors. All rights reserved.