From a2a05ccc6ca848db53f7c6c908a26a6b451eeab2 Mon Sep 17 00:00:00 2001 From: Luke Shumaker Date: Wed, 16 Nov 2016 12:30:43 -0500 Subject: util/fd: whoops, fix named sd fds --- src/util/fd.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/util/fd.go b/src/util/fd.go index 0c99972..91d2ee5 100644 --- a/src/util/fd.go +++ b/src/util/fd.go @@ -50,7 +50,7 @@ func FdNameToNum(name string) int { return n } } else if strings.HasPrefix(name, "systemd:") { - name = strings.TrimPrefix(name, "systemd") + name = strings.TrimPrefix(name, "systemd:") n, ok := sdFds[name] if ok { return n -- cgit v1.2.3-54-g00ecf