| @@ 78-84 (lines=7) @@ | ||
| 75 | if (Daemon::$process instanceof Master) { |
|
| 76 | Daemon::$process->unregisterSignals(); |
|
| 77 | } |
|
| 78 | if (Daemon::$process->eventBase) { |
|
| 79 | Daemon::$process->eventBase->reinit(); |
|
| 80 | $this->eventBase = Daemon::$process->eventBase; |
|
| 81 | } |
|
| 82 | else { |
|
| 83 | $this->eventBase = new \EventBase(); |
|
| 84 | } |
|
| 85 | Daemon::$process = $this; |
|
| 86 | if (Daemon::$logpointerAsync) { |
|
| 87 | Daemon::$logpointerAsync->fd = null; |
|
| @@ 149-155 (lines=7) @@ | ||
| 146 | if (Daemon::$process instanceof Master) { |
|
| 147 | Daemon::$process->unregisterSignals(); |
|
| 148 | } |
|
| 149 | if (Daemon::$process && Daemon::$process->eventBase) { |
|
| 150 | Daemon::$process->eventBase->reinit(); |
|
| 151 | $this->eventBase = Daemon::$process->eventBase; |
|
| 152 | } |
|
| 153 | else { |
|
| 154 | $this->eventBase = new \EventBase(); |
|
| 155 | } |
|
| 156 | Daemon::$process = $this; |
|
| 157 | if (Daemon::$logpointerAsync) { |
|
| 158 | $oldfd = Daemon::$logpointerAsync->fd; |
|