Procházet zdrojové kódy

Change the IPC TIMEOUT to block.

This is to make sure that we properly wait for responses
from corosync. I have made a fix to libqb to properly
handle the case when corosync exits/crashes between
a send and receive.

Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Reviewed-by: Jan Friesse <jfriesse@redhat.com>
Angus Salkeld před 14 roky
rodič
revize
1877d3b6f5
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1 1
      include/corosync/corotypes.h

+ 1 - 1
include/corosync/corotypes.h

@@ -108,7 +108,7 @@ typedef enum {
    CS_ERR_SECURITY = 100
 } cs_error_t;
 
-#define CS_IPC_TIMEOUT_MS 1000
+#define CS_IPC_TIMEOUT_MS -1
 
 #define CS_TIME_MS_IN_SEC   1000ULL
 #define CS_TIME_US_IN_SEC   1000000ULL