[Groonga-commit] groonga/groonga at 103e608 [master] Fix a bug that groonga doesn't exit on error while daemon mode startup

Back to archive index

Kouhei Sutou null+****@clear*****
Sat Aug 3 17:35:58 JST 2013


Kouhei Sutou	2013-08-03 17:35:58 +0900 (Sat, 03 Aug 2013)

  New Revision: 103e60818955d4a4ef8d497e9c5018b23d021f09
  https://github.com/groonga/groonga/commit/103e60818955d4a4ef8d497e9c5018b23d021f09

  Message:
    Fix a bug that groonga doesn't exit on error while daemon mode startup
    
    e.g.:
    
        % groonga -d /tmp/non-existence.db
        (It doesn't exit.)

  Modified files:
    src/groonga.c

  Modified: src/groonga.c (+2 -0)
===================================================================
--- src/groonga.c    2013-08-03 16:05:06 +0900 (4d584a7)
+++ src/groonga.c    2013-08-03 17:35:58 +0900 (6688397)
@@ -624,11 +624,13 @@ start_service(grn_ctx *ctx, const char *db_path,
     } else {
       fprintf(stderr, "db open failed (%s)\n", db_path);
       exit_code = EXIT_FAILURE;
+      send_ready_notify();
     }
     grn_com_event_fin(ctx, &ev);
   } else {
     fprintf(stderr, "grn_com_event_init failed\n");
     exit_code = EXIT_FAILURE;
+    send_ready_notify();
   }
 
   if (is_daemon_mode) {
-------------- next part --------------
HTML����������������������������...
Télécharger 



More information about the Groonga-commit mailing list
Back to archive index