From c44be54dd22c04c1d1ccc8db3aa4762e15593972 Mon Sep 17 00:00:00 2001 From: Dhruba Borthakur Date: Fri, 3 Aug 2012 00:58:26 -0700 Subject: [PATCH] Make leveldb server not exit immediately. Summary: Test Plan: Reviewers: CC: Task ID: # Blame Rev: --- README.fb | 2 +- thrift/server.cpp | 1 + thrift/server_utils.cpp | 2 +- 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/README.fb b/README.fb index bb3ffb826..5e6dd2771 100644 --- a/README.fb +++ b/README.fb @@ -9,4 +9,4 @@ This makes CRC computation much faster, but binaries won't run on CPUs that don't support it. -* Latest release is 1.4.1.fb +* Latest release is 1.4.1.fb -- re-release 1. diff --git a/thrift/server.cpp b/thrift/server.cpp index 2c6682edf..5e590d8ce 100644 --- a/thrift/server.cpp +++ b/thrift/server.cpp @@ -41,6 +41,7 @@ void signal_handler(int sig) { int main(int argc, char **argv) { signal(SIGINT, signal_handler); startServer(argc, argv); + sleep(100000000L); return 0; } diff --git a/thrift/server_utils.cpp b/thrift/server_utils.cpp index 5e9230940..d155bb74f 100644 --- a/thrift/server_utils.cpp +++ b/thrift/server_utils.cpp @@ -435,7 +435,7 @@ void startServer(int argc, char** argv) { // create the service to process the assoc get/put to leveldb. int assocport = server_options.getAssocPort(); - fprintf(stderr, "Server starting on port %d\n", assocport); + fprintf(stderr, "Assoc Service starting on port %d\n", assocport); shared_ptr assocTransport(new TServerSocket(assocport)); shared_ptr assocHandler(new AssocServiceHandler(openHandles)); shared_ptr assocProcessor(new AssocServiceProcessor(assocHandler));