message: reuse SwooleG.main_reactor
diff: @@ -240,7 +240,6 @@ static int swReactorProcess_onPipeRead(swReactor *reactor, swEvent *event)
  static int swReactorProcess_loop(swProcessPool *pool, swWorker *worker)
  {
  swServer *serv = pool->ptr;
  - swReactor *reactor = &(serv->reactor_threads[0].reactor);
  SwooleG.process_type = SW_PROCESS_WORKER;
  SwooleG.pid = getpid();
  @@ -281,10 +280,19 @@ static int swReactorProcess_loop(swProcessPool *pool, swWorker *worker)
  }
  //create reactor
  + swReactor *reactor;
  + if (!SwooleG.main_reactor)
  + {
  + reactor = &(serv->reactor_threads[0].reactor);
  if (swReactor_create(reactor, SW_REACTOR_MAXEVENTS) < 0)
  {
  return SW_ERR;
  }
  + }
  + else
  + {
  + reactor = SwooleG.main_reactor;
  + }
  swListenPort *ls;
  int fdtype;
  