You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@brpc.apache.org by GitBox <gi...@apache.org> on 2021/07/10 10:35:23 UTC
[GitHub] [incubator-brpc] yqynju opened a new issue #1471: call AskToQuit, then cannot restart server
yqynju opened a new issue #1471:
URL: https://github.com/apache/incubator-brpc/issues/1471
**Describe the bug (描述bug)**
```
void AskToQuit() {
raise(SIGINT);
}
static volatile bool s_signal_quit = false;
static SignalHandler s_prev_sigint_handler = NULL;
static SignalHandler s_prev_sigterm_handler = NULL;
static void quit_handler(int signo) {
s_signal_quit = true;
if (SIGINT == signo && s_prev_sigint_handler) {
s_prev_sigint_handler(signo);
}
if (SIGTERM == signo && s_prev_sigterm_handler) {
s_prev_sigterm_handler(signo);
}
}
the server start do not set
s_signal_quit to false agin.
```
**To Reproduce (复现方法)**
**Expected behavior (期望行为)**
**Versions (各种版本)**
OS:
Compiler:
brpc:
protobuf:
**Additional context/screenshots (更多上下文/截图)**
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] yqynju commented on issue #1471: call AskToQuit, then cannot restart server
Posted by GitBox <gi...@apache.org>.
yqynju commented on issue #1471:
URL: https://github.com/apache/incubator-brpc/issues/1471#issuecomment-881854325
> Hi, would you please describe the detail progress to reproduce this issue?
if server started, do some work, then AskToQuit . server do not listen port any more.
after a while, restart server again, the server cannot listen port.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org
[GitHub] [incubator-brpc] cdjingit commented on issue #1471: call AskToQuit, then cannot restart server
Posted by GitBox <gi...@apache.org>.
cdjingit commented on issue #1471:
URL: https://github.com/apache/incubator-brpc/issues/1471#issuecomment-879628758
Hi, would you please describe the detail progress to reproduce this issue?
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For queries about this service, please contact Infrastructure at:
users@infra.apache.org
---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@brpc.apache.org
For additional commands, e-mail: dev-help@brpc.apache.org