--- cluster/magma-plugins/Attic/Makefile 2004/08/03 16:39:14 1.2
+++ cluster/magma-plugins/Attic/Makefile 2008/01/09 18:54:46 1.2.2.1
@@ -10,25 +10,25 @@
################################################## #############################
################################################## #############################
all:
- cd cman && ${MAKE} all
+ #cd cman && ${MAKE} all
cd dumb && ${MAKE} all
cd gulm && ${MAKE} all
cd sm && ${MAKE} all
clean:
- cd cman && ${MAKE} clean
+ #cd cman && ${MAKE} clean
cd dumb && ${MAKE} clean
cd gulm && ${MAKE} clean
cd sm && ${MAKE} clean
install:
- cd cman && ${MAKE} install
+ #cd cman && ${MAKE} install
cd dumb && ${MAKE} install
cd gulm && ${MAKE} install
cd sm && ${MAKE} install
uninstall:
- cd cman && ${MAKE} uninstall
+ #cd cman && ${MAKE} uninstall
cd dumb && ${MAKE} uninstall
cd gulm && ${MAKE} uninstall
cd sm && ${MAKE} uninstall
--- cluster/magma-plugins/sm/Attic/sm.c 2007/04/23 18:24:58 1.9.2.12
+++ cluster/magma-plugins/sm/Attic/sm.c 2008/01/09 18:54:46 1.9.2.13
@@ -36,7 +36,7 @@
#include <sys/select.h>
#include <sys/stat.h>
- if ((ret = (wait_for_dlm_event(p->ls) < 0))) {
- fprintf(stderr, "wait_for_dlm_event: %d / %d
",
- ret, errno);
+ while ((ret = (wait_for_dlm_event(p->ls) < 0))) {
+ /* If nothing much has happened, just
+ wait a bit longer */
+ if (lksb->sb_status == EINPROG)
+ continue;
+ errno = lksb->sb_status;
return -1;
}
@@ -648,7 +652,11 @@
/* lksb->sb_status should be EINPROG at this point */
- if (wait_for_dlm_event(p->ls) < 0) {
+ while (wait_for_dlm_event(p->ls) < 0) {
+ /* If nothing much has happened, just
+ wait a bit longer */
+ if (lksb->sb_status == EINPROG)
+ continue;
errno = lksb->sb_status;
return -1;
}
@@ -705,8 +713,11 @@
return ret;
while (lksb.sb_status == EINPROG) {
- if (wait_for_dlm_event(p->ls) < 0)
+ if (wait_for_dlm_event(p->ls) < 0) {
+ if (lksb.sb_status == EINPROG)
+ continue;
return -1;
+ }
}