Explorar o código

- semop debugging

Andrei Pelinescu-Onciul %!s(int64=23) %!d(string=hai) anos
pai
achega
36b51cf93c
Modificáronse 1 ficheiros con 5 adicións e 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;
 }