Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
O
OpnSense
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Kulya
OpnSense
Commits
2833fbca
Commit
2833fbca
authored
Jan 24, 2015
by
Franco Fichtner
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
util: kill two bogus functions
parent
edd1601b
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
1 addition
and
21 deletions
+1
-21
util.inc
src/etc/inc/util.inc
+1
-19
diag_smart.php
src/www/diag_smart.php
+0
-2
No files found.
src/etc/inc/util.inc
View file @
2833fbca
<?php
/*
util.inc
part of the pfSense project (https://www.pfsense.org)
originally part of m0n0wall (http://m0n0.ch/wall)
/*
Copyright (C) 2003-2004 Manuel Kasper <mk@neon1.net>.
All rights reserved.
...
...
@@ -29,14 +26,6 @@
POSSIBILITY OF SUCH DAMAGE.
*/
/*
pfSense_BUILDER_BINARIES: /bin/ps /bin/kill /usr/bin/killall /sbin/ifconfig /usr/bin/netstat
pfSense_BUILDER_BINARIES: /usr/bin/awk /sbin/dmesg /sbin/ping /usr/local/sbin/gzsig /usr/sbin/arp
pfSense_BUILDER_BINARIES: /sbin/conscontrol /sbin/devd /bin/ps
pfSense_MODULE: utils
*/
/* kill a process by pid file */
function
killbypid
(
$pidfile
)
{
return
sigkillbypid
(
$pidfile
,
"TERM"
);
}
...
...
@@ -107,13 +96,6 @@ function clear_subsystem_dirty($subsystem = "") {
@
unlink
(
"
{
$g
[
'varrun_path'
]
}
/
{
$subsystem
}
.dirty"
);
}
function
config_lock
()
{
return
;
}
function
config_unlock
()
{
return
;
}
/* lock configuration file */
function
lock
(
$lock
,
$op
=
LOCK_SH
)
{
global
$g
,
$cfglckkeyconsumers
;
...
...
src/www/diag_smart.php
View file @
2833fbca
...
...
@@ -178,12 +178,10 @@ switch($action) {
// Don't know what all this means, but it addes the config changed header when config is saved
$retval
=
0
;
config_lock
();
if
(
stristr
(
$retval
,
"error"
)
<>
true
)
$savemsg
=
get_std_save_message
(
$retval
);
else
$savemsg
=
$retval
;
config_unlock
();
if
(
$_POST
[
'email'
])
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment