Commit 3bb1d29e authored by Franco Fichtner's avatar Franco Fichtner

inc: remove unused shmop plugin usage

parent 4d7e435a
......@@ -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
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment