git://developer.intra2net.com
/
bpdyndnsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
64ff14c
)
Only check config option start_offline once, not in the loop which would avoid signal...
author
Bjoern Sikora
<bjoern.sikora@intra2net.com>
Fri, 21 May 2010 07:21:31 +0000 (09:21 +0200)
committer
Bjoern Sikora
<bjoern.sikora@intra2net.com>
Fri, 21 May 2010 07:21:31 +0000 (09:21 +0200)
src/main.cpp
patch
|
blob
|
blame
|
history
diff --git
a/src/main.cpp
b/src/main.cpp
index
ae8135c
..
e2d7ed9
100644
(file)
--- a/
src/main.cpp
+++ b/
src/main.cpp
@@
-308,12
+308,12
@@
int main(int argc, char *argv[])
if ( init_daemon_mode(updater->get_config()->get_daemon_mode()) != 0 )
return -1;
+ // Should we start in offline mode?
+ is_online = !updater->get_config()->get_start_offline();
+
// service processing starts here
do
{
- // Should we start in offline mode?
- is_online = !updater->get_config()->get_start_offline();
-
if ( is_online == true )
{
// update all configured services