()
| 107 | } |
| 108 | |
| 109 | func (s *serverImpl) waitAttach() { |
| 110 | time.Sleep(time.Second * 3) |
| 111 | s.mutex.Lock() |
| 112 | defer s.mutex.Unlock() |
| 113 | |
| 114 | if !s.initialized { |
| 115 | log.Fatal("daemon was not attached, exiting") |
| 116 | } |
| 117 | } |
| 118 | |
| 119 | func (s *serverImpl) listen() (err error) { |
| 120 | socketFile := s.configuration.GetSocketFile() |