Revision 8420f4fe
Added by Ermal LUÇI about 14 years ago
etc/inc/util.inc | ||
---|---|---|
192 | 192 |
$shmid = @shmop_open($reference, "w", 0, 0); |
193 | 193 |
} |
194 | 194 |
$shm_data = @shmop_read($shmid, 0, 10); |
195 |
if (intval($shm_data) < 0) |
|
196 |
$shm_data = 0; |
|
195 | 197 |
$shm_data = intval($shm_data) + 1; |
196 | 198 |
@shmop_write($shmid, $shm_data, 0); |
197 | 199 |
@shmop_close($shmid); |
Also available in: Unified diff
Prevent negative references to be used for the refcount API. This should help with misusage of it as may occur in mount rw/ro calls.