From 4a1ce124f9a02378e77f4c93414adbdc12529015 Mon Sep 17 00:00:00 2001 From: barrierye Date: Thu, 19 Mar 2020 21:13:27 +0800 Subject: [PATCH] update code --- core/general-server/op/general_response_op.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/core/general-server/op/general_response_op.cpp b/core/general-server/op/general_response_op.cpp index 956a69e5..271278c9 100644 --- a/core/general-server/op/general_response_op.cpp +++ b/core/general-server/op/general_response_op.cpp @@ -76,8 +76,9 @@ int GeneralResponseOp::inference() { Response *res = mutable_data(); // to let the client know which server the current response comes from - VLOG(2) << "getpid: " << getpid(); - res->set_server_pid(static_cast(getpid())); + int server_pid = static_cast(getpid()); + VLOG(2) << "getpid: " << server_pid; + res->set_server_pid(server_pid); for (int i = 0; i < batch_size; ++i) { FetchInst *fetch_inst = res->add_insts(); -- GitLab