4d0b91947e
chore: delete // +build buildtag by go fix
...
Signed-off-by: Wei Fu <fuweid89@gmail.com >
2022-12-29 14:17:05 +08:00
72cf0cc04a
etcd: modify declaring empty slices
...
declare an empty slice to var s []int replace s :=[]int{}, https://github.com/golang/go/wiki/CodeReviewComments#declaring-empty-slices
Signed-off-by: demoManito <1430482733@qq.com >
2022-09-16 14:41:14 +08:00
c4582aaaee
remove redundant log messages
...
Signed-off-by: kkkkun <scuzk373x@gmail.com >
2022-09-16 11:45:43 +08:00
a7f340216d
Reformat code according to 'gotip' rules.
...
In practices adds annotations in the new syntax:
```
+//go:build !linux
// +build !linux
```
Fixes failing gotip PASSES='fmt' check:
https://travis-ci.com/github/etcd-io/etcd/jobs/486453806
2021-02-26 10:14:46 +01:00
ae983523db
pkg: remove capnslog ( #11616 )
...
* pkg: remove capnslog
* CHANGELOG: function signature change
2020-02-12 11:15:41 -08:00
0dad8abb6f
pkg: support structured logger
...
Signed-off-by: Gyuho Lee <gyuhox@gmail.com >
2018-04-16 17:36:00 -07:00
7a1739a3e8
osutil: force SIG_DFL before resending terminating signal
...
The go runtime won't always reinstall the default signal handler on the
SIGTERM path, so it's possible the signal won't terminate the process.
Instead, force SIG_DFL for the signal.
2017-05-12 11:56:27 -07:00
8b77de4e99
pkg: update LICENSE header
2016-05-12 20:48:53 -07:00
865a5ffc61
pkg/osutil: use leveled log
2015-06-11 14:19:53 -07:00
cec8466ad2
osutil: fix InterruptHandler comment position
2015-04-04 11:32:42 -04:00
7ae94f2bf0
osutil: pid 1 should exit directly instead of trying to kill itself
2015-02-19 20:27:50 -08:00
e44dc0f3fe
osutil: fix win build
2015-02-13 16:33:39 -08:00