Make leveldb server not exit immediately.

Summary:

Test Plan:

Reviewers:

CC:

Task ID: #

Blame Rev:
This commit is contained in:
Dhruba Borthakur
2012-08-03 00:58:26 -07:00
parent 2d04ab5382
commit c44be54dd2
3 changed files with 3 additions and 2 deletions

View File

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

View File

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

View File

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