Explorar el Código

- semop debugging

Andrei Pelinescu-Onciul hace 23 años
padre
commit
36b51cf93c
Se han modificado 1 ficheros con 5 adiciones y 1 borrados
  1. 5 1
      modules/tm/lock.c

+ 5 - 1
modules/tm/lock.c

@@ -230,7 +230,11 @@ tryagain:
 		if (errno==EINTR) {
 			DBG("signal received in a semaphore\n");
 			goto tryagain;
-		} else LOG(L_CRIT, "ERROR: change_semaphore: %s\n", strerror(errno));
+		} else {
+			LOG(L_CRIT, "ERROR: change_semaphore(%x, %x, 1) : %s\n",
+					s.semaphore.set, &pbuf,
+					strerror(errno));
+			
 	}
 	return r;
 }