make command not block.
This commit is contained in:
parent
e833d990db
commit
0fca4a6e41
@ -48,13 +48,13 @@ jobs:
|
|||||||
username: ${{ vars.YUYUN_USER }}
|
username: ${{ vars.YUYUN_USER }}
|
||||||
password: ${{ secrets.SERVER_ROOT_PASSWORD }}
|
password: ${{ secrets.SERVER_ROOT_PASSWORD }}
|
||||||
script: |
|
script: |
|
||||||
cd /root/Server
|
cd /root/Server;
|
||||||
source /etc/profile
|
source /etc/profile;
|
||||||
/root/Server/HttpServer --exit
|
/root/Server/HttpServer --exit;
|
||||||
sleep 10
|
sleep 10;
|
||||||
cp /tmp/HttpServer /root/Server/HttpServer
|
cp /tmp/HttpServer /root/Server/HttpServer;
|
||||||
/root/Server/HttpServer &
|
/root/Server/HttpServer &;
|
||||||
exit 0
|
exit 0;
|
||||||
- name: Notify-End
|
- name: Notify-End
|
||||||
if: ${{ always() }}
|
if: ${{ always() }}
|
||||||
run: |
|
run: |
|
||||||
|
@ -346,7 +346,6 @@ void Application::startAcceptRequest() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
void Application::requetExit() {
|
void Application::requetExit() {
|
||||||
nng_log_set_logger(nng_stderr_logger);
|
|
||||||
LOG(info) << "send exit request to program.";
|
LOG(info) << "send exit request to program.";
|
||||||
Nng::Socket request(Nng::Request);
|
Nng::Socket request(Nng::Request);
|
||||||
request.setOption(Nng::RecvTimeout, std::chrono::milliseconds(2000));
|
request.setOption(Nng::RecvTimeout, std::chrono::milliseconds(2000));
|
||||||
|
Loading…
Reference in New Issue
Block a user