projects
/
project
/
firewall3.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
load running state after lock is acquired
[project/firewall3.git]
/
main.c
diff --git
a/main.c
b/main.c
index
b953020
..
241da62
100644
(file)
--- a/
main.c
+++ b/
main.c
@@
-546,7
+546,6
@@
int main(int argc, char **argv)
}
build_state(false);
}
build_state(false);
- build_state(true);
defs = &cfg_state->defaults;
if (optind >= argc)
defs = &cfg_state->defaults;
if (optind >= argc)
@@
-577,12
+576,18
@@
int main(int argc, char **argv)
print_family = family;
fw3_pr_debug = true;
print_family = family;
fw3_pr_debug = true;
- rv = start();
+ if (fw3_lock())
+ {
+ build_state(true);
+ rv = start();
+ fw3_unlock();
+ }
}
else if (!strcmp(argv[optind], "start"))
{
if (fw3_lock())
{
}
else if (!strcmp(argv[optind], "start"))
{
if (fw3_lock())
{
+ build_state(true);
rv = start();
fw3_unlock();
}
rv = start();
fw3_unlock();
}
@@
-591,6
+596,7
@@
int main(int argc, char **argv)
{
if (fw3_lock())
{
{
if (fw3_lock())
{
+ build_state(true);
rv = stop(false);
fw3_unlock();
}
rv = stop(false);
fw3_unlock();
}
@@
-599,6
+605,7
@@
int main(int argc, char **argv)
{
if (fw3_lock())
{
{
if (fw3_lock())
{
+ build_state(true);
rv = stop(true);
fw3_unlock();
}
rv = stop(true);
fw3_unlock();
}
@@
-607,6
+614,7
@@
int main(int argc, char **argv)
{
if (fw3_lock())
{
{
if (fw3_lock())
{
+ build_state(true);
stop(true);
rv = start();
fw3_unlock();
stop(true);
rv = start();
fw3_unlock();
@@
-616,6
+624,7
@@
int main(int argc, char **argv)
{
if (fw3_lock())
{
{
if (fw3_lock())
{
+ build_state(true);
rv = reload();
fw3_unlock();
}
rv = reload();
fw3_unlock();
}