mirror of
https://github.com/opencontainers/runc.git
synced 2026-07-10 21:53:57 +08:00
Fixing some lint issues
Signed-off-by: Amim Knabben <amim.knabben@gmail.com>
This commit is contained in:
+4
-1
@@ -162,7 +162,10 @@ func (n *notifySocket) run(pid1 int) error {
|
||||
|
||||
// now we can inform systemd to use pid1 as the pid to monitor
|
||||
newPid := "MAINPID=" + strconv.Itoa(pid1)
|
||||
client.Write([]byte(newPid + "\n"))
|
||||
_, err := client.Write([]byte(newPid + "\n"))
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
return nil
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user