Make leveldb server not exit immediately.

Summary:

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev:
main
Dhruba Borthakur 13 years ago
parent 2d04ab5382
commit c44be54dd2
  1. 2
      README.fb
  2. 1
      thrift/server.cpp
  3. 2
      thrift/server_utils.cpp

@ -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.

@ -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;
}

@ -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<TServerTransport> assocTransport(new TServerSocket(assocport));
shared_ptr<AssocServiceHandler> assocHandler(new AssocServiceHandler(openHandles));
shared_ptr<TProcessor> assocProcessor(new AssocServiceProcessor(assocHandler));

Loading…
Cancel
Save