From ff062cc00716d31d6cf5a2f0f4a79dab13484d64 Mon Sep 17 00:00:00 2001 From: brl Date: Sat, 6 Jun 2015 14:29:34 -0400 Subject: [PATCH] creating and starting ipc server separated now --- oz-daemon/daemon.go | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/oz-daemon/daemon.go b/oz-daemon/daemon.go index d0b6111..85d5119 100644 --- a/oz-daemon/daemon.go +++ b/oz-daemon/daemon.go @@ -67,11 +67,11 @@ func (d *daemonState) handleChildExit(pid int, wstatus syscall.WaitStatus) { } func runServer(log *logging.Logger, args ...interface{}) error { - err := ipc.RunServer(SocketName, messageFactory, log, args...) + s,err := ipc.NewServer(SocketName, messageFactory, log, args...) if err != nil { return err } - return nil + return s.Run() } func (d * daemonState) handlePing(msg *PingMsg, m *ipc.Message) error {