aboutsummaryrefslogtreecommitdiffhomepage
path: root/admin.go
diff options
context:
space:
mode:
Diffstat (limited to 'admin.go')
-rw-r--r--admin.go3
1 files changed, 1 insertions, 2 deletions
diff --git a/admin.go b/admin.go
index fb451682e..684526dd0 100644
--- a/admin.go
+++ b/admin.go
@@ -26,7 +26,6 @@ import (
"expvar"
"fmt"
"io"
- "io/ioutil"
"net"
"net/http"
"net/http/pprof"
@@ -1202,7 +1201,7 @@ var (
// will get deleted before the process gracefully exits.
func PIDFile(filename string) error {
pid := []byte(strconv.Itoa(os.Getpid()) + "\n")
- err := ioutil.WriteFile(filename, pid, 0600)
+ err := os.WriteFile(filename, pid, 0600)
if err != nil {
return err
}