mirror of
https://github.com/lucaspalomodevelop/core.git
synced 2026-03-20 03:16:12 +00:00
inc: remove unused shmop plugin usage
This commit is contained in:
parent
4d7e435ac7
commit
3bb1d29e9f
@ -155,26 +155,6 @@ function send_event($cmd)
|
||||
return $backend->sendEvent("{$cmd}");
|
||||
}
|
||||
|
||||
function refcount_init($reference) {
|
||||
$shmid = @shmop_open($reference, "c", 0644, 10);
|
||||
@shmop_write($shmid, str_pad("0", 10, "\x0", STR_PAD_RIGHT), 0);
|
||||
@shmop_close($shmid);
|
||||
}
|
||||
|
||||
|
||||
function refcount_read($reference) {
|
||||
/* This function just reads the current value of the refcount for information. */
|
||||
/* There is no need for locking. */
|
||||
$shmid = @shmop_open($reference, "a", 0, 0);
|
||||
if (!$shmid) {
|
||||
log_error(gettext("Could not open shared memory for read {$reference}"));
|
||||
return -1;
|
||||
}
|
||||
$shm_data = @shmop_read($shmid, 0, 10);
|
||||
@shmop_close($shmid);
|
||||
return $shm_data;
|
||||
}
|
||||
|
||||
function is_module_loaded($module_name) {
|
||||
$module_name = str_replace(".ko", "", $module_name);
|
||||
$running = 0;
|
||||
|
||||
@ -59,8 +59,6 @@ PHPMODULES="$PHPMODULES suhosin"
|
||||
PHPMODULES="$PHPMODULES ctype"
|
||||
# firewall_rules_edit.php
|
||||
PHPMODULES="$PHPMODULES mbstring"
|
||||
# Synchronization primitives
|
||||
PHPMODULES="$PHPMODULES shmop"
|
||||
# Page compression
|
||||
PHPMODULES="$PHPMODULES zlib"
|
||||
# SQLlite & Database
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user