message: Event::rshutdown for internal
diff: @@ -41,6 +41,7 @@ static PHP_FUNCTION(swoole_event_set);
  static PHP_FUNCTION(swoole_event_del);
  static PHP_FUNCTION(swoole_event_write);
  static PHP_FUNCTION(swoole_event_wait);
  +static PHP_FUNCTION(swoole_event_rshutdown);
  static PHP_FUNCTION(swoole_event_exit);
  static PHP_FUNCTION(swoole_event_defer);
  static PHP_FUNCTION(swoole_event_cycle);
  @@ -98,6 +99,7 @@ static const zend_function_entry swoole_event_methods[] =
  ZEND_FENTRY(cycle, ZEND_FN(swoole_event_cycle), arginfo_swoole_event_cycle, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
  ZEND_FENTRY(write, ZEND_FN(swoole_event_write), arginfo_swoole_event_write, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
  ZEND_FENTRY(wait, ZEND_FN(swoole_event_wait), arginfo_swoole_void, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
  + ZEND_FENTRY(rshutdown, ZEND_FN(swoole_event_rshutdown), arginfo_swoole_void, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
  ZEND_FENTRY(exit, ZEND_FN(swoole_event_exit), arginfo_swoole_void, ZEND_ACC_PUBLIC | ZEND_ACC_STATIC)
  PHP_FE_END
  };
  @@ -271,7 +273,7 @@ int php_swoole_reactor_init()
  reactor->wait_exit = 1;
  SwooleG.main_reactor = reactor;
  - php_swoole_register_shutdown_function("swoole_event_wait");
  + php_swoole_register_shutdown_function("Swoole\\Event::rshutdown");
  }
  return SW_OK;
  }
  @@ -800,10 +802,15 @@ static PHP_FUNCTION(swoole_event_wait)
  {
  return;
  }
  + php_swoole_event_wait();
  +}
  +
  +static PHP_FUNCTION(swoole_event_rshutdown)
  +{
  /* prevent the program from jumping out of the rshutdown */
  zend_try
  {
  - php_swoole_event_wait();
  + PHP_FN(swoole_event_wait)(INTERNAL_FUNCTION_PARAM_PASSTHRU);
  }
  zend_end_try();
  }
  